lua-users home
lua-l archive

[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