MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / enterblock

Function enterblock

extlibs/lua/src/lparser.c:624–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622
623
624static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isloop) {
625 bl->isloop = isloop;
626 bl->nactvar = fs->nactvar;
627 bl->firstlabel = fs->ls->dyd->label.n;
628 bl->firstgoto = fs->ls->dyd->gt.n;
629 bl->upval = 0;
630 bl->insidetbc = (fs->bl != NULL && fs->bl->insidetbc);
631 bl->previous = fs->bl;
632 fs->bl = bl;
633 lua_assert(fs->freereg == luaY_nvarstack(fs));
634}
635
636
637/*

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 1

luaY_nvarstackFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68