[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to know if can I execute a yield
- From: Thierry FOURNIER <tfournier@...>
- Date: Sat, 7 Mar 2015 02:18:25 +0100
On Fri, 6 Mar 2015 13:30:24 +0100 (CET)
Gunnar Zötl <gz@tset.de> wrote:
>
> > > 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.
Thank you Gunnar,
I will look this asap.
Thierry