| 1704 | |
| 1705 | |
| 1706 | static 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 | |
| 1716 | static void localstat (LexState *ls) { |