MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaK_checkstack

Function luaK_checkstack

freebsd/contrib/openzfs/module/lua/lcode.c:259–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258
259void luaK_checkstack (FuncState *fs, int n) {
260 int newstack = fs->freereg + n;
261 if (newstack > fs->f->maxstacksize) {
262 if (newstack >= MAXSTACK)
263 luaX_syntaxerror(fs->ls, "function or expression too complex");
264 fs->f->maxstacksize = cast_byte(newstack);
265 }
266}
267
268
269void 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