Module:LuaCall: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
m check nothing else fouled |
||
| Line 32: | Line 32: | ||
end |
end |
||
local reserved_arraypart=_G |
local reserved_arraypart=_G |
||
while reserved_function do |
-- while reserved_function do |
||
if reserved_call then reserved_call=reserved_call[mw.ustring.match(reserved_function,"^(%a[^%.]*)%.") or reserved_call] else debuglog=debuglog.."NIL error" end |
-- if reserved_call then reserved_call=reserved_call[mw.ustring.match(reserved_function,"^(%a[^%.]*)%.") or reserved_call] else debuglog=debuglog.."NIL error" end |
||
local reserved_function=mw.ustring.match(reserved_function,"^%a[^%.]*%.(.*)$") |
-- local reserved_function=mw.ustring.match(reserved_function,"^%a[^%.]*%.(.*)$") |
||
debuglog=debuglog.."->"..reserved_function.."</nowiki><br /><nowiki>" |
-- debuglog=debuglog.."->"..reserved_function.."</nowiki><br /><nowiki>" |
||
end |
-- end |
||
debuglog=debuglog.."Lookup _G value is "..tostring(reserved_call) |
debuglog=debuglog.."Lookup _G value is "..tostring(reserved_call) |
||
if reserved_debug or 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 |
||