[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Watchdog for Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Jun 2006 08:28:06 -0300
> I checked the manual and I think that should use
> where my_hook should call lua_error to stop the script.
> Is this what you suggested?
Yes. You can also do that in Lua using debug.sethook.
> And finally, where I can get your lalarm from?
It works for both Lua 5.0 and Lua 5.1, but you'll need to do minor tweaks
to the Makefile.