Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created March 17, 2015 00:18
Show Gist options
  • Save nefftd/640e7f4aea761a666ac8 to your computer and use it in GitHub Desktop.
Save nefftd/640e7f4aea761a666ac8 to your computer and use it in GitHub Desktop.
do
local function _ffa(func,key)
local nextv
key,nextv = next(_G,key)
while nextv ~= nil do
if nextv == func then
return key,_ffa(func,key)
end
key,nextv = next(_G,key)
end
end
function findfuncall(func)
return _ffa(func,nil)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment