| 8049 | |
| 8050 | |
| 8051 | static void lastlistfield (FuncState *fs, struct ConsControl *cc) { |
| 8052 | if (cc->tostore == 0) return; |
| 8053 | if (hasmultret(cc->v.k)) { |
| 8054 | luaK_setmultret(fs, &cc->v); |
| 8055 | luaK_setlist(fs, cc->t->u.s.info, cc->na, LUA_MULTRET); |
| 8056 | cc->na--; /* do not count last expression (unknown number of elements) */ |
| 8057 | } |
| 8058 | else { |
| 8059 | if (cc->v.k != VVOID) |
| 8060 | luaK_exp2nextreg(fs, &cc->v); |
| 8061 | luaK_setlist(fs, cc->t->u.s.info, cc->na, cc->tostore); |
| 8062 | } |
| 8063 | } |
| 8064 | |
| 8065 | |
| 8066 | static void listfield (LexState *ls, struct ConsControl *cc) { |
no test coverage detected