lua-users home
lua-l archive

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


> 1.  When I do the lua_open, I pass across a parameter of 1024.  However,
> when I do a lua_stackspace, I get 1043.  I wondered why.

Lua adds LUA_MINSTACK to your value to ensure minimum size.


> If I make my calls to LUA and I get a stack size of anything other than the
> 1043 (the original amount), does that mean that there may be an issue
> within the environment and I should close it/reload it?

If you leave any values on the stack lua_stackspace will not return the
original size. But, if you make your calls and pops all eventual returns,
you should get the original size.

-- Roberto