MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / closelistfield

Function closelistfield

extlibs/lua/src/lparser.c:849–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847
848
849static void closelistfield (FuncState *fs, ConsControl *cc) {
850 if (cc->v.k == VVOID) return; /* there is no list item */
851 luaK_exp2nextreg(fs, &cc->v);
852 cc->v.k = VVOID;
853 if (cc->tostore == LFIELDS_PER_FLUSH) {
854 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
855 cc->na += cc->tostore;
856 cc->tostore = 0; /* no more items pending */
857 }
858}
859
860
861static 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