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

Function chunk

other_src/lua/src/lparser.cpp:1325–1337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1323
1324
1325static void chunk (LexState *ls) {
1326 /* chunk -> { stat [`;'] } */
1327 int islast = 0;
1328 enterlevel(ls);
1329 while (!islast && !block_follow(ls->t.token)) {
1330 islast = statement(ls);
1331 testnext(ls, ';');
1332 lua_assert(ls->fs->f->maxstacksize >= ls->fs->freereg &&
1333 ls->fs->freereg >= ls->fs->nactvar);
1334 ls->fs->freereg = ls->fs->nactvar; /* free registers */
1335 }
1336 leavelevel(ls);
1337}
1338
1339/* }====================================================================== */

Callers 4

luaY_parserFunction · 0.70
bodyFunction · 0.70
blockFunction · 0.70
repeatstatFunction · 0.70

Calls 4

enterlevelFunction · 0.70
block_followFunction · 0.70
statementFunction · 0.70
testnextFunction · 0.70

Tested by

no test coverage detected