MCPcopy Create free account
hub / github.com/F-Stack/f-stack / closelistfield

Function closelistfield

app/redis-6.2.6/deps/lua/src/lparser.c:468–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466
467
468static void closelistfield (FuncState *fs, struct ConsControl *cc) {
469 if (cc->v.k == VVOID) return; /* there is no list item */
470 luaK_exp2nextreg(fs, &cc->v);
471 cc->v.k = VVOID;
472 if (cc->tostore == LFIELDS_PER_FLUSH) {
473 luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); /* flush */
474 cc->tostore = 0; /* no more items pending */
475 }
476}
477
478
479static 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