| 1779 | |
| 1780 | |
| 1781 | static void localfunc (LexState *ls) { |
| 1782 | expdesc b; |
| 1783 | FuncState *fs = ls->fs; |
| 1784 | int fvar = fs->nactvar; /* function's variable index */ |
| 1785 | new_localvar(ls, str_checkname(ls)); /* new local variable */ |
| 1786 | adjustlocalvars(ls, 1); /* enter its scope */ |
| 1787 | body(ls, &b, 0, ls->linenumber); /* function created in next register */ |
| 1788 | /* debug information will only see the variable after this point! */ |
| 1789 | localdebuginfo(fs, fvar)->startpc = fs->pc; |
| 1790 | } |
| 1791 | |
| 1792 | |
| 1793 | static lu_byte getvarattribute (LexState *ls, lu_byte df) { |
no test coverage detected