[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
> lua_sethook(*,my_hook,LUA_MASKCOUNT,1000)
> 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?
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
It works for both Lua 5.0 and Lua 5.1, but you'll need to do minor tweaks
to the Makefile.
--lhf