Module:LuaCall: Difference between revisions
From Test Wiki
Content deleted Content added
p.import() check type=='function' |
fix bug, local function must be placed before import call |
||
| Line 40: | Line 40: | ||
return reserved_output[reserved_return or 1] |
return reserved_output[reserved_return or 1] |
||
end |
end |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
end |
end |
||
| Line 114: | Line 127: | ||
-- on each iteration |
-- on each iteration |
||
local function iIterators(t) return iIteratorsAtOffset(t, 0) end |
local function iIterators(t) return iIteratorsAtOffset(t, 0) end |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
local function get(s) |
local function get(s) |
||