| 1490 | |
| 1491 | |
| 1492 | static void localfunc(LexState *ls) { |
| 1493 | expdesc b; |
| 1494 | FuncState *fs = ls->fs; |
| 1495 | new_localvar(ls, str_checkname(ls)); /* new local variable */ |
| 1496 | adjustlocalvars(ls, 1); /* enter its scope */ |
| 1497 | body(ls, &b, 0, ls->linenumber); /* function created in next register */ |
| 1498 | /* debug information will only see the variable after this point! */ |
| 1499 | getlocvar(fs, b.u.info)->startpc = fs->pc; |
| 1500 | } |
| 1501 | |
| 1502 | |
| 1503 | static void localstat(LexState *ls) { |
no test coverage detected