| 682 | |
| 683 | |
| 684 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
| 685 | if (cc->tostore == 0) return; |
| 686 | if (hasmultret(cc->v.k)) { |
| 687 | luaK_setmultret(fs, &cc->v); |
| 688 | luaK_setlist(fs, cc->t->u.info, cc->na, LUA_MULTRET); |
| 689 | cc->na--; /* do not count last expression (unknown number of elements) */ |
| 690 | } |
| 691 | else { |
| 692 | if (cc->v.k != VVOID) |
| 693 | luaK_exp2nextreg(fs, &cc->v); |
| 694 | luaK_setlist(fs, cc->t->u.info, cc->na, cc->tostore); |
| 695 | } |
| 696 | } |
| 697 | |
| 698 | |
| 699 | static void listfield (LexState *ls, struct ConsControl *cc) { |
no test coverage detected