MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / closelistfield

Function closelistfield

third-party/lua-5.4.6/src/lparser.c:867–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

constructorFunction · 0.70

Calls 2

luaK_exp2nextregFunction · 0.70
luaK_setlistFunction · 0.70

Tested by

no test coverage detected