| 462 | |
| 463 | |
| 464 | static 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 | |
| 475 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
no test coverage detected