MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_checkstack

Function luaK_checkstack

third-party/lua-5.5.0/src/lcode.c:476–482  ·  view source on GitHub ↗

** Check register-stack level, keeping track of its maximum size ** in field 'maxstacksize' */

Source from the content-addressed store, hash-verified

474** in field 'maxstacksize'
475*/
476void luaK_checkstack (FuncState *fs, int n) {
477 int newstack = fs->freereg + n;
478 if (newstack > fs->f->maxstacksize) {
479 luaY_checklimit(fs, newstack, MAX_FSTACK, "registers");
480 fs->f->maxstacksize = cast_byte(newstack);
481 }
482}
483
484
485/*

Callers 3

adjust_assignFunction · 0.70
forlistFunction · 0.70
luaK_reserveregsFunction · 0.70

Calls 1

luaY_checklimitFunction · 0.85

Tested by

no test coverage detected