| 1223 | |
| 1224 | |
| 1225 | static void localfunc (LexState *ls) { |
| 1226 | expdesc v, b; |
| 1227 | FuncState *fs = ls->fs; |
| 1228 | new_localvar(ls, str_checkname(ls), 0); |
| 1229 | init_exp(&v, VLOCAL, fs->freereg); |
| 1230 | luaK_reserveregs(fs, 1); |
| 1231 | adjustlocalvars(ls, 1); |
| 1232 | body(ls, &b, 0, ls->linenumber); |
| 1233 | luaK_storevar(fs, &v, &b); |
| 1234 | /* debug information will only see the variable after this point! */ |
| 1235 | getlocvar(fs, fs->nactvar - 1).startpc = fs->pc; |
| 1236 | } |
| 1237 | |
| 1238 | |
| 1239 | static void declarestat (LexState *ls) { |
no test coverage detected