lua-users home
lua-l archive

Re: luaL_checkstack ? (WAS: Re: Variable number of return values from C to lua)

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


On 2007年6月14日 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. %-)

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