|
Am 20.09.2016 um 14:37 schrieb Viacheslav Usov:
Lua uses setjmp/longjmp to raise errors, so it is susceptible to such incompatibilities. Lua can also be compiled using the C++ throw/catch mechanism for that purpose, but that is even more runtime-dependent. Cheers, V.
I thought of setjmp/longjmp too but the setjmp (pcall) and longjmp (error) both happen in the same Lua DLL. So as long as longjmp is not implemented in a way that relies on the stack frames between setjmp/longjmp to have a particular format (e.g. when implemented using exception handling), that should work.
‒ Christian