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

Function enterblock

xrepo/packages/l/lua/port/lua/src/lparser.c:641–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639
640
641static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isloop) {
642 bl->isloop = isloop;
643 bl->nactvar = fs->nactvar;
644 bl->firstlabel = fs->ls->dyd->label.n;
645 bl->firstgoto = fs->ls->dyd->gt.n;
646 bl->upval = 0;
647 bl->insidetbc = (fs->bl != NULL && fs->bl->insidetbc);
648 bl->previous = fs->bl;
649 fs->bl = bl;
650 lua_assert(fs->freereg == luaY_nvarstack(fs));
651}
652
653
654/*

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