MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / enterblock

Function enterblock

third-party/lua-5.2.4/src/lparser.c:438–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

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

Calls

no outgoing calls

Tested by 1

test_then_blockFunction · 0.56