MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / luaK_checkstack

Function luaK_checkstack

src/vm/luavm/lua/lcode.c:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276
277
278void luaK_checkstack (FuncState *fs, int n) {
279 int newstack = fs->freereg + n;
280 if (newstack > fs->f->maxstacksize) {
281 if (newstack >= MAXREGS)
282 luaX_syntaxerror(fs->ls,
283 "function or expression needs too many registers");
284 fs->f->maxstacksize = cast_byte(newstack);
285 }
286}
287
288
289void luaK_reserveregs (FuncState *fs, int n) {

Callers 2

forlistFunction · 0.85
luaK_reserveregsFunction · 0.85

Calls 1

luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected