Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap C functions to throw errors in Lua functions
This change makes all C functions not throw their Lua errors directly, and instead makes them return it for a Lua wrapper to pick up and raise. By doing this, the issue of longjmp translation is bypassed/fixed on non-Windows platforms, as the errors are thrown and caught inside native Lua runtime code. Fixes NLua#344
- Loading branch information
Showing
3 changed files
with
152 additions
and
86 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.