MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaK_checkstack

Function luaK_checkstack

other_src/lua/src/lcode.cpp:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199void luaK_checkstack (FuncState *fs, int n) {
200 int newstack = fs->freereg + n;
201 if (newstack > fs->f->maxstacksize) {
202 if (newstack >= MAXSTACK)
203 luaX_syntaxerror(fs->ls, "function or expression too complex");
204 fs->f->maxstacksize = cast_byte(newstack);
205 }
206}
207
208
209void luaK_reserveregs (FuncState *fs, int n) {

Callers 2

luaK_reserveregsFunction · 0.70
forlistFunction · 0.70

Calls 1

luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected