lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

>What about using setjmp and longjmp?

This is essentially my suggestion to run your C code as a Lua C function
via lua_call. Lua then will set up things so that there will be a jmp_buf
to longjmp to and the exit path will never be taken. I think this solution is
much cleaner and does not need any fiddling with the internals of Lua and
so I recommend it.