MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / leaveblock

Function leaveblock

Source/Misc/lua/src/lua.c:7872–7883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7870
7871
7872static void leaveblock (FuncState *fs) {
7873BlockCnt *bl = fs->bl;
7874fs->bl = bl->previous;
7875removevars(fs->ls, bl->nactvar);
7876if (bl->upval)
7877luaK_codeABC(fs, OP_CLOSE, bl->nactvar, 0, 0);
7878/* a block either controls scope or breaks (never both) */
7879lua_assert(!bl->isbreakable || !bl->upval);
7880lua_assert(bl->nactvar == fs->nactvar);
7881fs->freereg = fs->nactvar; /* free registers */
7882luaK_patchtohere(fs, bl->breaklist);
7883}
7884
7885
7886static void pushclosure (LexState *ls, FuncState *func, expdesc *v) {

Callers 5

blockFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85
forbodyFunction · 0.85
lua.cFile · 0.85

Calls 3

removevarsFunction · 0.85
luaK_codeABCFunction · 0.85
luaK_patchtohereFunction · 0.85

Tested by

no test coverage detected