[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: customizable Lua "panic" behavior
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 19 Nov 2001 22:06:30 -0200
>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.