lua-users home
lua-l archive

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


> > Lua 5.3 has `lua_isyieldable`[1] (or `coroutine.isyieldable`[2] on the 
> > Lua side). For previous Lua versions you are out of luck.
> 
> 
> Great, thank you. My Lua implementation is currently in
> development/beta, so I can make big changes and upgrade the version.

if you don't mind fiddling with lua's internals, I have a small module
(http://www.tset.de/dbghelper/) which among other things also needs to check
whether lua can yield, look at YIELDCOND, right at the start.

Gunnar