| 8739 | |
| 8740 | |
| 8741 | static void localfunc (LexState *ls) { |
| 8742 | expdesc v, b; |
| 8743 | FuncState *fs = ls->fs; |
| 8744 | new_localvar(ls, str_checkname(ls), 0); |
| 8745 | init_exp(&v, VLOCAL, fs->freereg); |
| 8746 | luaK_reserveregs(fs, 1); |
| 8747 | adjustlocalvars(ls, 1); |
| 8748 | body(ls, &b, 0, ls->linenumber); |
| 8749 | luaK_storevar(fs, &v, &b); |
| 8750 | /* debug information will only see the variable after this point! */ |
| 8751 | getlocvar(fs, fs->nactvar - 1).startpc = fs->pc; |
| 8752 | } |
| 8753 | |
| 8754 | |
| 8755 | static void localstat (LexState *ls) { |
no test coverage detected