MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / enterblock

Function enterblock

3rd/lua-5.4.3/src/lparser.c:630–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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