[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: customizable Lua "panic" behavior
- From: "Nick Trout" <nick@...>
- Date: Mon, 19 Nov 2001 17:03:23 -0000
> I agree that there's not much that Lua can do. However it could have a
> function pointer to a C error handler, which is just enough customization
> for the program that I'm working on. This way, the host application has an
> opportunity to exit in its own way. Also, it may be a context in which Lua's
> memory corruption does not affect the host application, and in that case the
> host application could terminate and restart Lua or something like that.
Can you not use atexit() if Lua calls exit() ?