| 866 | |
| 867 | |
| 868 | static void closelistfield (FuncState *fs, ConsControl *cc) { |
| 869 | if (cc->v.k == VVOID) return; /* there is no list item */ |
| 870 | luaK_exp2nextreg(fs, &cc->v); |
| 871 | cc->v.k = VVOID; |
| 872 | if (cc->tostore == LFIELDS_PER_FLUSH) { |
| 873 | luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); /* flush */ |
| 874 | cc->na += cc->tostore; |
| 875 | cc->tostore = 0; /* no more items pending */ |
| 876 | } |
| 877 | } |
| 878 | |
| 879 | |
| 880 | static void lastlistfield (FuncState *fs, ConsControl *cc) { |
no test coverage detected