|
int lua_yieldk (lua_State *L, int nresults, int ctx, lua_CFunction k); Yields a coroutine. This function should only be called as the return expression of a C function, as follows: ---> return lua_yield (L, nresults, i, k); I guess it should be return lua_yieldk(L, n results, i, k); -- http://blog.codingnow.com