MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / closelistfield

Function closelistfield

3rd/lua-5.4.3/src/lparser.c:856–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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