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