| 473 | |
| 474 | |
| 475 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
| 476 | if (cc->tostore == 0) return; |
| 477 | if (hasmultret(cc->v.k)) { |
| 478 | luaK_setmultret(fs, &cc->v); |
| 479 | luaK_setlist(fs, cc->t->u.s.info, cc->na, LUA_MULTRET); |
| 480 | cc->na--; /* do not count last expression (unknown number of elements) */ |
| 481 | } |
| 482 | else { |
| 483 | if (cc->v.k != VVOID) |
| 484 | luaK_exp2nextreg(fs, &cc->v); |
| 485 | luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | |
| 490 | static void listfield (LexState *ls, struct ConsControl *cc) { |
no test coverage detected