Skip to content

Instantly share code, notes, and snippets.

@vrld
Created September 2, 2010 12:20
Show Gist options
  • Save vrld/562209 to your computer and use it in GitHub Desktop.
Save vrld/562209 to your computer and use it in GitHub Desktop.
function listTable(tbl, prefix)
local prefix = prefix or ""
for i,t in pairs(tbl) do
if type(t) == "table" then listTable(t, prefix.."."..i)
elseif type(t) == "function" then print(prefix.."."..i) end
end
end
function love.load()
listTable(love, "love")
love.event.push('q')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment