|
int lua_checkstack(lua_State *L, int extra);On Tue, Aug 30, 2011 at 3:22 PM, oliver <oliver.schoenborn@gmail.com> wrote:
Would it be correct to say, "all functions which take a stack index
require that it is inside the available stack space",
...or when stackspace equals X
luaL_checkany(L,X+1) is undefined.BTW, is there a way of knowing "available stack space"? Alternately a "bool lua_isacceptable(L, index)" would be a nice function to have.Oliver
http://www.lua.org/manual/5.1/manual.html#lua_checkstack