[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: Tue, 12 Jun 2007 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