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

Function localstat

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

Source from the content-addressed store, hash-verified

1501
1502
1503static void localstat(LexState *ls) {
1504 /* stat -> LOCAL NAME {',' NAME} ['=' explist] */
1505 int nvars = 0;
1506 int nexps;
1507 expdesc e;
1508 do {
1509 new_localvar(ls, str_checkname(ls));
1510 nvars++;
1511 } while (testnext(ls, ','));
1512 if (testnext(ls, '='))
1513 nexps = explist(ls, &e);
1514 else {
1515 e.k = VVOID;
1516 nexps = 0;
1517 }
1518 adjust_assign(ls, nvars, nexps, &e);
1519 adjustlocalvars(ls, nvars);
1520}
1521
1522
1523static int funcname(LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.85

Calls 6

new_localvarFunction · 0.85
str_checknameFunction · 0.85
testnextFunction · 0.85
explistFunction · 0.85
adjust_assignFunction · 0.85
adjustlocalvarsFunction · 0.85

Tested by

no test coverage detected