[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can I stop and continue lua code from a C function called from lua?
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 2 Jun 2006 14:12:46 -0300
> One question, its not clear (from sec 3.20 of the 5.0 ref man) whether I
> MUST call lua_newthread() to get a lua_State that can be passed as an
> argument to lua_resume().
> If I only want one coroutine, can I call lua_resume() on the "main"
> state that I created with lua_open()?
Technically yes, you can. It is just not very conventional...