mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01:00
Fix func.call_by_value nil handling
This commit is contained in:
parent
bd150ce209
commit
2a133df40d
2
func.lua
2
func.lua
@ -101,7 +101,7 @@ 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{...}, 1, select("#", ...)))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Functional wrappers for Lua's builtin metatable operators (arithmetic, concatenation, length, comparison, indexing, call)
|
-- Functional wrappers for Lua's builtin metatable operators (arithmetic, concatenation, length, comparison, indexing, call)
|
||||||
|
Loading…
Reference in New Issue
Block a user