MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / exprstat

Function exprstat

src/Chain/libraries/glua/lparser.cpp:1551–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549
1550
1551static 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
1571static void retstat(LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

suffixedexpFunction · 0.85
assignmentFunction · 0.85

Tested by

no test coverage detected