Is there anything I can use to find globals in my code?
Any help would be greatly appreciated.
Caleb [import]uid: 147322 topic_id: 35765 reply_id: 335765[/import]
Is there anything I can use to find globals in my code?
Any help would be greatly appreciated.
Caleb [import]uid: 147322 topic_id: 35765 reply_id: 335765[/import]
Look at this little bit of code:
local function globalWatch(g, key, value)
print("GlobalWatch --- ", tostring(key) .. " has been added to \_G\n" .. debug.traceback())
rawset(g, key, value)
end
setmetatable(\_G, { \_\_index = globalWatch })
[import]uid: 199310 topic_id: 35765 reply_id: 142278[/import]
Thanks!
C [import]uid: 147322 topic_id: 35765 reply_id: 142355[/import]
Look at this little bit of code:
local function globalWatch(g, key, value)
print("GlobalWatch --- ", tostring(key) .. " has been added to \_G\n" .. debug.traceback())
rawset(g, key, value)
end
setmetatable(\_G, { \_\_index = globalWatch })
[import]uid: 199310 topic_id: 35765 reply_id: 142278[/import]
Thanks!
C [import]uid: 147322 topic_id: 35765 reply_id: 142355[/import]