| 1535 | |
| 1536 | |
| 1537 | static void funcstat(LexState *ls, int line) { |
| 1538 | /* funcstat -> FUNCTION funcname body */ |
| 1539 | int ismethod; |
| 1540 | expdesc v, b; |
| 1541 | luaX_next(ls); /* skip FUNCTION */ |
| 1542 | ismethod = funcname(ls, &v); |
| 1543 | body(ls, &b, ismethod, line); |
| 1544 | if (ls->L->force_stopping) |
| 1545 | return; |
| 1546 | luaK_storevar(ls->fs, &v, &b); |
| 1547 | luaK_fixline(ls->fs, line); /* definition "happens" in the first line */ |
| 1548 | } |
| 1549 | |
| 1550 | |
| 1551 | static void exprstat(LexState *ls) { |
no test coverage detected