| 854 | |
| 855 | |
| 856 | static void closelistfield (FuncState *fs, ConsControl *cc) { |
| 857 | if (cc->v.k == VVOID) return; /* there is no list item */ |
| 858 | luaK_exp2nextreg(fs, &cc->v); |
| 859 | cc->v.k = VVOID; |
| 860 | if (cc->tostore == LFIELDS_PER_FLUSH) { |
| 861 | luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */ |
| 862 | cc->na += cc->tostore; |
| 863 | cc->tostore = 0; /* no more items pending */ |
| 864 | } |
| 865 | } |
| 866 | |
| 867 | |
| 868 | static void lastlistfield (FuncState *fs, ConsControl *cc) { |
no test coverage detected