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