MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / restore_stack_limit

Function restore_stack_limit

Source/Misc/lua/src/lua.c:5217–5224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5215
5216
5217static void restore_stack_limit (lua_State *L) {
5218lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK - 1);
5219if (L->size_ci > LUAI_MAXCALLS) { /* there was an overflow? */
5220int inuse = cast_int(L->ci - L->base_ci);
5221if (inuse + 1 < LUAI_MAXCALLS) /* can `undo' overflow? */
5222luaD_reallocCI(L, LUAI_MAXCALLS);
5223}
5224}
5225
5226
5227static void resetstack (lua_State *L, int status) {

Callers 2

resetstackFunction · 0.85
luaD_pcallFunction · 0.85

Calls 1

luaD_reallocCIFunction · 0.85

Tested by

no test coverage detected