| 325 | |
| 326 | |
| 327 | static void leaveblock (FuncState *fs) { |
| 328 | BlockCnt *bl = fs->bl; |
| 329 | fs->bl = bl->previous; |
| 330 | removevars(fs->ls, bl->nactvar); |
| 331 | if (bl->upval) |
| 332 | luaK_codeABC(fs, OP_CLOSE, bl->nactvar, 0, 0); |
| 333 | /* a block either controls scope or breaks (never both) */ |
| 334 | lua_assert(!bl->isbreakable || !bl->upval); |
| 335 | lua_assert(bl->nactvar == fs->nactvar); |
| 336 | fs->freereg = fs->nactvar; /* free registers */ |
| 337 | luaK_patchtohere(fs, bl->breaklist); |
| 338 | } |
| 339 | |
| 340 | |
| 341 | static void pushclosure (LexState *ls, FuncState *func, expdesc *v) { |
no test coverage detected