mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 01:03:46 +01:00
Remove func.assert
This commit is contained in:
parent
aa85f75d6d
commit
bd5dd3fa50
6
func.lua
6
func.lua
@ -155,12 +155,6 @@ function override_chain(func, override)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function assert(value, callback)
|
|
||||||
if not value then
|
|
||||||
error(callback())
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--+ Calls func using the provided arguments, deepcopies all arguments
|
--+ Calls func using the provided arguments, deepcopies all arguments
|
||||||
function call_by_value(func, ...)
|
function call_by_value(func, ...)
|
||||||
return func(unpack(modlib.table.deepcopy{...}))
|
return func(unpack(modlib.table.deepcopy{...}))
|
||||||
|
Loading…
Reference in New Issue
Block a user