MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / closelistfield

Function closelistfield

Source/Misc/lua/src/lua.c:8040–8048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8038
8039
8040static void closelistfield (FuncState *fs, struct ConsControl *cc) {
8041if (cc->v.k == VVOID) return; /* there is no list item */
8042luaK_exp2nextreg(fs, &cc->v);
8043cc->v.k = VVOID;
8044if (cc->tostore == LFIELDS_PER_FLUSH) {
8045luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); /* flush */
8046cc->tostore = 0; /* no more items pending */
8047}
8048}
8049
8050
8051static 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