[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: small error in lua 5.2 beta document
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 9 Aug 2011 09:33:52 -0300
> 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);
Thanks.
-- Roberto