MCPcopy Create free account
hub / github.com/DFHack/dfhack / enterblock

Function enterblock

depends/lua/src/lparser.c:439–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437
438
439static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isloop) {
440 bl->isloop = isloop;
441 bl->nactvar = fs->nactvar;
442 bl->firstlabel = fs->ls->dyd->label.n;
443 bl->firstgoto = fs->ls->dyd->gt.n;
444 bl->upval = 0;
445 bl->previous = fs->bl;
446 fs->bl = bl;
447 lua_assert(fs->freereg == fs->nactvar);
448}
449
450
451/*

Callers 7

open_funcFunction · 0.85
blockFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85
forbodyFunction · 0.85
forstatFunction · 0.85
test_then_blockFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_then_blockFunction · 0.68