We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lua_pushcclosure should push the parent lua_State as the first upvalue and a "function specifier" as the second upvalue.
the passed lua function should go on the parent lua_State's registry, and that's where the "function specifier" comes from.
lua_pushcclosure(function(L) print(L) print("virtualization!") return 0 end)
debug.* API wouldn't get much from those C closures, making this an effective sandbox.
The text was updated successfully, but these errors were encountered:
This general idea makes sense to me. I'll add it to my todo list and hopefully get to that soon. Thanks!
Sorry, something went wrong.
tylerneylon
No branches or pull requests
lua_pushcclosure should push the parent lua_State as the first upvalue and a "function specifier" as the second upvalue.
the passed lua function should go on the parent lua_State's registry, and that's where the "function specifier" comes from.
debug.* API wouldn't get much from those C closures, making this an effective sandbox.
The text was updated successfully, but these errors were encountered: