[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to know if can I execute a yield
- From: Gunnar Zötl <gz@...>
- Date: Fri, 6 Mar 2015 13:30:24 +0100 (CET)
> > Lua 5.3 has `lua_isyieldable` (or `coroutine.isyieldable` 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.