[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_checkstack ? (WAS: Re: Variable number of return values from C to lua)
- From: Ketmar Dark <ketmar@...>
- Date: Fri, 15 Jun 2007 02:57:51 +0300
On Thu, 14 Jun 2007 23:22:39 +0200
Mildred <ml.mildred593@online.fr> wrote:
> Why calling luaL_checkstack is needed before adding too much elements
> in the stack ?
manual is clear 'bout it, isn't it? yep, actually not SO clear... 3-5
values is safe. even 10 is safe, but don't bet on it. %-) and take a
look at stdlibs -- there's so much enlightenment things...
you will not loose anything if you'll do stack checking. +5 values need
it -- just use this rule and you will never fail. %-)