Created
March 17, 2015 00:18
-
-
Save nefftd/640e7f4aea761a666ac8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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