MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / exprstat

Function exprstat

Plugins/slua_unreal/External/lua/lparser.cpp:1486–1499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484
1485
1486static void exprstat (LexState *ls) {
1487 /* stat -> func | assignment */
1488 FuncState *fs = ls->fs;
1489 struct LHS_assign v;
1490 suffixedexp(ls, &v.v);
1491 if (ls->t.token == '=' || ls->t.token == ',') { /* stat -> assignment ? */
1492 v.prev = NULL;
1493 assignment(ls, &v, 1);
1494 }
1495 else { /* stat -> func */
1496 check_condition(ls, v.v.k == VCALL, "syntax error");
1497 SETARG_C(getinstruction(fs, &v.v), 1); /* call statement uses no results */
1498 }
1499}
1500
1501
1502static void retstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 2

suffixedexpFunction · 0.85
assignmentFunction · 0.85

Tested by

no test coverage detected