MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / exprstat

Function exprstat

extlibs/lua/src/lparser.c:1815–1829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1813
1814
1815static void exprstat (LexState *ls) {
1816 /* stat -> func | assignment */
1817 FuncState *fs = ls->fs;
1818 struct LHS_assign v;
1819 suffixedexp(ls, &v.v);
1820 if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */
1821 v.prev = NULL;
1822 restassign(ls, &v, 1);
1823 }
1824 else { /* stat -> func */
1825 Instruction *inst = &getinstruction(fs, &v.v);
1826 check_condition(ls, v.v.k == VCALL, "syntax error");
1827 SETARG_C(*inst, 1); /* call statement uses no results */
1828 }
1829}
1830
1831
1832static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

suffixedexpFunction · 0.85
restassignFunction · 0.85

Tested by

no test coverage detected