MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / closelistfield

Function closelistfield

lib/lua/src/lparser.c:868–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866
867
868static void closelistfield (FuncState *fs, ConsControl *cc) {
869 if (cc->v.k == VVOID) return; /* there is no list item */
870 luaK_exp2nextreg(fs, &cc->v);
871 cc->v.k = VVOID;
872 if (cc->tostore == LFIELDS_PER_FLUSH) {
873 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
874 cc->na += cc->tostore;
875 cc->tostore = 0; /* no more items pending */
876 }
877}
878
879
880static void lastlistfield (FuncState *fs, ConsControl *cc) {

Callers 1

constructorFunction · 0.85

Calls 2

luaK_exp2nextregFunction · 0.85
luaK_setlistFunction · 0.85

Tested by

no test coverage detected