lua-users home
lua-l archive

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


On 2012-12-05 3:47 PM, "Nikolay Zapolnov" <zapolnov@gmail.com> wrote:
>
>
> >> How can I overflow lua stack in this case?
>
> > You need to ensure room on the stack exists using lua_checkstack or
> > luaL_checkstack before pushing that many values.
>
> Oops, missed that...
> I believed that lua grows stack automatically when doing push/pop using lua API.
> Thank you for help! Sorry for annoyance.
>

I've been confused about that too. The manual mentions at some point that Lua automatically checks the available stack space, but when?