lua-users home
lua-l archive

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


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. %-)