[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Catching errors in Lua
- From: Markus Ewald <Markus_Ewald@...>
- Date: Sat, 28 Oct 2000 20:03:32 +0200
Hi!
I'm trying to avoid the exit() call in luaD_breakrun() without altering
lua itself, of course. Registering an atexit() function isn't enough for
me, I need to catch the error and let the application continue without
the script.
I've seen that luaD_breakrun() checks wether the errorJmp member of
lua_State is set or not. Is there any way to set errorJmp to my own
error recovery routine ?
Btw, I'm using Lua 4.0 beta.
-Markus-