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

Fix LuaJIT exception wrapper #1580

Closed
wants to merge 1 commit into from

Conversation

kahrl
Copy link
Contributor

@kahrl kahrl commented Aug 23, 2014

This reverts the LuaJIT exception wrapper to the recommended version shown at:
http://luajit.org/ext_c_api.html#mode_wrapcfunc

The current exception wrapper fails to handle C++ exceptions thrown inside C++ code called from Lua. This is why the error message in #1556 is just "C++ exception" and nothing more specific.

To test this fix, apply #1579 and run the chat command "/exceptiontest immediate exception" in the minimal game.

@kahrl
Copy link
Contributor Author

kahrl commented Aug 23, 2014

3e267a6

@kahrl kahrl closed this Aug 23, 2014
@kahrl kahrl deleted the fix_luajit_exception_wrapper branch September 14, 2014 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant