Re: Variable number of return values from C to lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Variable number of return values from C to lua
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年6月12日 15:14:56 -0300
> for (int i=0; i<bonesOut.getSize(); i++)
> {
> lua_pushnumber(l, (int)bonesOut[i]);
> }
>
Mind the stack.
You should add something like "luaL_checkstack(L, bonesOut.getSize())"
before the loop...
-- Roberto