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

Function closelistfield

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

Source from the content-addressed store, hash-verified

693
694
695static void closelistfield(FuncState *fs, struct ConsControl *cc) {
696 if (cc->v.k == VVOID) return; /* there is no list item */
697 luaK_exp2nextreg(fs, &cc->v);
698 cc->v.k = VVOID;
699 if (cc->tostore == LFIELDS_PER_FLUSH) {
700 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
701 cc->tostore = 0; /* no more items pending */
702 }
703}
704
705
706static void lastlistfield(FuncState *fs, struct ConsControl *cc) {

Callers 1

constructorFunction · 0.85

Calls 2

luaK_exp2nextregFunction · 0.85
luaK_setlistFunction · 0.85

Tested by

no test coverage detected