Kagee

Untitled

Apr 29th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function dump (prefix, a)
  2.   for i,v in pairs (a) do
  3.     if type(v) == "table" then
  4.       dump(prefix .. '.' .. i,v)
  5.     elseif type(v) == "function" then
  6.       print (prefix .. '.' .. i .. '()')
  7.     end
  8.   end
  9. end
  10. dump('_G',_G)
Advertisement
Add Comment
Please, Sign In to add comment