| 466 | |
| 467 | |
| 468 | static 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 | |
| 479 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
no test coverage detected