vararg pass

This commit is contained in:
BuckarooBanzay 2023-03-05 18:08:57 +01:00
parent a6a91934bf
commit a82267e967
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ mtt.register("load_module", function(callback)
callback()
end)
local mod = mtscad.load_module("load_module")
local mod, other_val = mtscad.load_module("load_module")
assert(other_val and other_val.success)
mod(ctx)
-- process async jobs

View File

@ -3,4 +3,4 @@ local mylib = mtscad.load_module("lib/mylib")
return function(ctx)
ctx:execute(mylib)
end
end, {success=true}