[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: luaL_checkstack ? (WAS: Re: Variable number of return values from C to lua)
- From: Mildred <ml.mildred593@...>
- Date: Thu, 14 Jun 2007 23:22:39 +0200
Le Tue 12/06/2007 à 15:14 Roberto Ierusalimschy à écrit:
>
> Mind the stack.
> You should add something like "luaL_checkstack(L, bonesOut.getSize())"
> before the loop...
>
Why calling luaL_checkstack is needed before adding too much elements
in the stack ?
When call it and when do not call it ? I mean do I have to call it
when I just have 3 elements to push ? Where is the limit ?
Thanks.
Mildred
--
Mildred <xmpp:mildred@jabber.fr> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]