lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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?

It works for both Lua 5.0 and Lua 5.1, but you'll need to do minor tweaks
to the Makefile.