Skip to content

Instantly share code, notes, and snippets.

@marcoonroad
Created December 24, 2014 11:15
Show Gist options
  • Save marcoonroad/41c4e142955ad3e9631c to your computer and use it in GitHub Desktop.
Save marcoonroad/41c4e142955ad3e9631c to your computer and use it in GitHub Desktop.
Symbol table dumping at Lua...
setmetatable => function: 0x8060770
string => table: 0x9575d58
require => function: 0x9576740
coroutine => table: 0x95767a0
arg => table: 0x9578970
os => table: 0x9576930
tostring => function: 0x805fbf0
xpcall => function: 0x8060600
rawset => function: 0x805ff60
pairs => function: 0x8060910
rawequal => function: 0x8060090
module => function: 0x9576700
type => function: 0x805fba0
rawget => function: 0x805ffd0
package => table: 0x9575858
rawlen => function: 0x8060030
bit32 => table: 0x95760e8
tonumber => function: 0x805fc30
loadstring => function: 0x80609a0
unpack => function: 0x8067a20
pcall => function: 0x80606f0
collectgarbage => function: 0x8060440
select => function: 0x805fe20
loadfile => function: 0x8060b10
print => function: 0x80600f0
math => table: 0x9577f68
debug => table: 0x9577160
io => table: 0x9576b58
_G => table: 0x9575308
table => table: 0x95769a8
dofile => function: 0x8060c70
next => function: 0x8060250
load => function: 0x80609a0
assert => function: 0x8060d10
_VERSION => Lua 5.2
getmetatable => function: 0x8060c00
error => function: 0x80603b0
ipairs => function: 0x8060930
-- symbol table dumping --
local symbol = _G
for entry, value in pairs (_G) do
print (tostring (entry) .. " => " .. tostring (value))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment