lua-users home
lua-l archive

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


>I was just wondering if there is any way to immediately stop Lua execution, 
>say, if some user scripts enter an infinite loop

You can set a hook and then a timer and a timer handler that calls lua_error
when the time has elapsed. In Lua 5.0 you'll be able to set "count" hooks
as well.
--lhf