Re: "attempt to yield across metamethod/C-call boundary" with LuaJIT but not with Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: "attempt to yield across metamethod/C-call boundary" with LuaJIT but not with Lua
- From: Tim Mensch <tim-lua-l@...>
- Date: 2011年10月15日 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
C stack.
Or you can use LuaJIT 2.x, which uses a different yielding method.
Tim