lua-users home
lua-l archive

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


On Wed, Dec 5, 2012 at 3:55 PM, Rena <hyperhacker@gmail.com> wrote:
>The manual mentions at some point that
> Lua automatically checks the available stack space, but when?

"Whenever Lua calls C, it ensures that the stack has at least
LUA_MINSTACK extra slots."

"When you call a Lua function without a fixed number of results (see
lua_call), Lua ensures that the stack has enough size for all results,
but it does not ensure any extra space."

--
- Patrick Donnelly