MCPcopy Create free account
hub / github.com/DFHack/dfhack / closelistfield

Function closelistfield

depends/lua/src/lparser.c:668–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666
667
668static void closelistfield (FuncState *fs, struct ConsControl *cc) {
669 if (cc->v.k == VVOID) return; /* there is no list item */
670 luaK_exp2nextreg(fs, &cc->v);
671 cc->v.k = VVOID;
672 if (cc->tostore == LFIELDS_PER_FLUSH) {
673 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
674 cc->tostore = 0; /* no more items pending */
675 }
676}
677
678
679static 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