[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: "attempt to yield across metamethod/C-call boundary" with LuaJIT but not with Lua
- From: Tim Mensch <tim-lua-l@...>
- Date: Sat, 15 Oct 2011 17:40:37 -0600
On 10/15/2011 5:35 PM, Szymon Gatner wrote:
> lua_State* coro = lua_newthread(L);
You need to use lua_newcthread(). Otherwise LuaJIT 1.x doesn't create a
Or you can use LuaJIT 2.x, which uses a different yielding method.