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

Function luaK_checkstack

third-party/lua-5.2.4/src/lcode.c:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260
261void luaK_checkstack (FuncState *fs, int n) {
262 int newstack = fs->freereg + n;
263 if (newstack > fs->f->maxstacksize) {
264 if (newstack >= MAXSTACK)
265 luaX_syntaxerror(fs->ls, "function or expression too complex");
266 fs->f->maxstacksize = cast_byte(newstack);
267 }
268}
269
270
271void luaK_reserveregs (FuncState *fs, int n) {

Callers 2

forlistFunction · 0.70
luaK_reserveregsFunction · 0.70

Calls 1

luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected