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

Function checktoclose

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

Source from the content-addressed store, hash-verified

1704
1705
1706static void checktoclose (LexState *ls, int level) {
1707 if (level != -1) { /* is there a to-be-closed variable? */
1708 FuncState *fs = ls->fs;
1709 markupval(fs, level + 1);
1710 fs->bl->insidetbc = 1; /* in the scope of a to-be-closed variable */
1711 luaK_codeABC(fs, OP_TBC, reglevel(fs, level), 0, 0);
1712 }
1713}
1714
1715
1716static void localstat (LexState *ls) {

Callers 1

localstatFunction · 0.85

Calls 2

markupvalFunction · 0.85
reglevelFunction · 0.85

Tested by

no test coverage detected