| 704 | |
| 705 | |
| 706 | static void lastlistfield(FuncState *fs, struct ConsControl *cc) { |
| 707 | if (cc->tostore == 0) return; |
| 708 | if (hasmultret(cc->v.k)) { |
| 709 | luaK_setmultret(fs, &cc->v); |
| 710 | luaK_setlist(fs, cc->t->u.info, cc->na, LUA_MULTRET); |
| 711 | cc->na--; /* do not count last expression (unknown number of elements) */ |
| 712 | } |
| 713 | else { |
| 714 | if (cc->v.k != VVOID) |
| 715 | luaK_exp2nextreg(fs, &cc->v); |
| 716 | luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); |
| 717 | } |
| 718 | } |
| 719 | |
| 720 | |
| 721 | static void listfield(LexState *ls, struct ConsControl *cc) { |
no test coverage detected