lua-users home
lua-l archive

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


> Any plans to introduce an optional cycle limiter, to guard against infinite 
> loops and things like that?  Such that I can say: lua_setcycles(50); 
> lua_dostring(...); and at 50 cycles in, it will yield back to the function 
> that called it with a LUA_YIELD return code, at which point I can call 
> lua_continue() or do something else...

Hopefuly, you will be able to do that using the line hook.

-- Roberto