lua_checkstack

lua_checkstack[-0, +0, –]

int lua_checkstack (lua_State *L, int n);

Ensures that the stack has space for at least n extra slots (that is, that you can safely push up to n values into it). It returns false if it cannot fulfill the request, either because it would cause the stack to be larger than a fixed maximum size (typically at least several thousand elements) or because it cannot allocate memory for the extra space. This function never shrinks the stack; if the stack already has space for the extra slots, it is left unchanged.

doc_lua
2017-02-21 04:12:53
Comments
Leave a Comment

Please login to continue.