| 1549 | |
| 1550 | |
| 1551 | static void exprstat(LexState *ls) { |
| 1552 | /* stat -> func | assignment */ |
| 1553 | FuncState *fs = ls->fs; |
| 1554 | struct LHS_assign v; |
| 1555 | suffixedexp(ls, &v.v); |
| 1556 | if (ls->L->force_stopping) |
| 1557 | return; |
| 1558 | if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */ |
| 1559 | v.prev = nullptr; |
| 1560 | assignment(ls, &v, 1); |
| 1561 | } |
| 1562 | else { /* stat -> func */ |
| 1563 | check_condition(ls, v.v.k == VCALL, "syntax error"); |
| 1564 | if (ls->L->force_stopping) |
| 1565 | return; |
| 1566 | SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */ |
| 1567 | } |
| 1568 | } |
| 1569 | |
| 1570 | |
| 1571 | static void retstat(LexState *ls) { |
no test coverage detected