| 1163 | |
| 1164 | |
| 1165 | static void localfunc (LexState *ls) { |
| 1166 | expdesc v, b; |
| 1167 | FuncState *fs = ls->fs; |
| 1168 | new_localvar(ls, str_checkname(ls), 0); |
| 1169 | init_exp(&v, VLOCAL, fs->freereg); |
| 1170 | luaK_reserveregs(fs, 1); |
| 1171 | adjustlocalvars(ls, 1); |
| 1172 | body(ls, &b, 0, ls->linenumber); |
| 1173 | luaK_storevar(fs, &v, &b); |
| 1174 | /* debug information will only see the variable after this point! */ |
| 1175 | getlocvar(fs, fs->nactvar - 1).startpc = fs->pc; |
| 1176 | } |
| 1177 | |
| 1178 | |
| 1179 | static void localstat (LexState *ls) { |
no test coverage detected