MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / enterblock

Function enterblock

lib/lua/src/lparser.c:642–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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