| 504 | |
| 505 | |
| 506 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
| 507 | if (cc->tostore == 0) return; |
| 508 | if (hasmultret(cc->v.k)) { |
| 509 | luaK_setmultret(fs, &cc->v); |
| 510 | luaK_setlist(fs, cc->t->u.s.info, cc->na, LUA_MULTRET); |
| 511 | cc->na--; /* do not count last expression (unknown number of elements) */ |
| 512 | } |
| 513 | else { |
| 514 | if (cc->v.k != VVOID) |
| 515 | luaK_exp2nextreg(fs, &cc->v); |
| 516 | luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | |
| 521 | static void listfield (LexState *ls, struct ConsControl *cc) { |
no test coverage detected