Skip to content

Instantly share code, notes, and snippets.

@antirez
Last active November 11, 2015 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antirez/e003f656aa0c57d450af to your computer and use it in GitHub Desktop.
Save antirez/e003f656aa0c57d450af to your computer and use it in GitHub Desktop.

<antirez> Hello Lua hackers. My question: I'm using the Lua C API, and i'm inside a Lua line hook. Now from there I can call lua_[p]call() without issues, however it creates a new callframe, so I'm no longer able to access the local vars in the context of the function where the hook was called. Is there a workaround?

@tarruda
Copy link

tarruda commented Nov 11, 2015

Perhaps debug.getlocal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment