lua-users home
lua-l archive

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]


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

AltStyle によって変換されたページ (->オリジナル) /