Module:LuaCall: Difference between revisions

From Test Wiki
Content deleted Content added
I think this is the bug - local scoping?
force debug option
Line 32: Line 32:
end
end
debuglog=debuglog.."Lookup _G value of "..tostring(reserved_function).." is "..tostring(reserved_call)
debuglog=debuglog.."Lookup _G value of "..tostring(reserved_function).." is "..tostring(reserved_call)
if not reserved_function then return frame.preprocess(frame,"<nowiki>"..debuglog.."</nowiki>") end
if reserved_debug or not reserved_function then return frame.preprocess(frame,"<nowiki>"..debuglog.."</nowiki>") end
local reserved_call=_G[reserved_function]
local reserved_call=_G[reserved_function]
return _G[reserved_function](unpack(reserved_contents or {}))
return _G[reserved_function](unpack(reserved_contents or {}))