MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / closelistfield

Function closelistfield

deps/lua/src/lparser.c:464–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464static void closelistfield (FuncState *fs, struct ConsControl *cc) {
465 if (cc->v.k == VVOID) return; /* there is no list item */
466 luaK_exp2nextreg(fs, &cc->v);
467 cc->v.k = VVOID;
468 if (cc->tostore == LFIELDS_PER_FLUSH) {
469 luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); /* flush */
470 cc->tostore = 0; /* no more items pending */
471 }
472}
473
474
475static void lastlistfield (FuncState *fs, struct ConsControl *cc) {

Callers 1

constructorFunction · 0.85

Calls 2

luaK_exp2nextregFunction · 0.85
luaK_setlistFunction · 0.85

Tested by

no test coverage detected