MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / enterblock

Function enterblock

deps/lua/src/lparser.c:285–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283
284
285static void enterblock (FuncState *fs, BlockCnt *bl, lu_byte isbreakable) {
286 bl->breaklist = NO_JUMP;
287 bl->isbreakable = isbreakable;
288 bl->nactvar = fs->nactvar;
289 bl->upval = 0;
290 bl->previous = fs->bl;
291 fs->bl = bl;
292 lua_assert(fs->freereg == fs->nactvar);
293}
294
295
296static void leaveblock (FuncState *fs) {

Callers 5

blockFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85
forbodyFunction · 0.85
forstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected