lua-users home
lua-l archive

Re: Variable number of return values from C to lua

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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

AltStyle によって変換されたページ (->オリジナル) /