Skip to content
New issue

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

Make CFunction safe when Lua is compiled as C #154

Merged
merged 29 commits into from
Oct 22, 2023

Conversation

kunitoki
Copy link
Owner

Avoid C++ exceptions to leak into Lua, it might have a performance impact for CFunction in the normal case (lua is compiled as C++) because it creates an indirection CFunction<safe> -> CFunction<unsafe>.

Need to find a way to determine if we could avoid the indirection (lua is compiled as C++).

@kunitoki kunitoki linked an issue Oct 22, 2023 that may be closed by this pull request
@kunitoki kunitoki merged commit 3bd338b into master Oct 22, 2023
@kunitoki kunitoki deleted the dev/safe_cfunction_when_lua_c branch October 22, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lua error crashes host with CFunction but not typed function.
1 participant