| 493 | |
| 494 | |
| 495 | static void closelistfield (FuncState *fs, struct ConsControl *cc) { |
| 496 | if (cc->v.k == VVOID) return; /* there is no list item */ |
| 497 | luaK_exp2nextreg(fs, &cc->v); |
| 498 | cc->v.k = VVOID; |
| 499 | if (cc->tostore == LFIELDS_PER_FLUSH) { |
| 500 | luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); /* flush */ |
| 501 | cc->tostore = 0; /* no more items pending */ |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | |
| 506 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
no test coverage detected