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

Function closelistfield

third-party/lua-5.2.4/src/lparser.c:673–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671
672
673static void closelistfield (FuncState *fs, struct ConsControl *cc) {
674 if (cc->v.k == VVOID) return; /* there is no list item */
675 luaK_exp2nextreg(fs, &cc->v);
676 cc->v.k = VVOID;
677 if (cc->tostore == LFIELDS_PER_FLUSH) {
678 luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */
679 cc->tostore = 0; /* no more items pending */
680 }
681}
682
683
684static void lastlistfield (FuncState *fs, struct ConsControl *cc) {

Callers 1

constructorFunction · 0.70

Calls 2

luaK_exp2nextregFunction · 0.70
luaK_setlistFunction · 0.70

Tested by

no test coverage detected