| 817 | |
| 818 | |
| 819 | void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { |
| 820 | int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1; |
| 821 | int b = (tostore == LUA_MULTRET) ? 0 : tostore; |
| 822 | lua_assert(tostore != 0); |
| 823 | if (c <= MAXARG_C) |
| 824 | luaK_codeABC(fs, OP_SETLIST, base, b, c); |
| 825 | else { |
| 826 | luaK_codeABC(fs, OP_SETLIST, base, b, 0); |
| 827 | luaK_code(fs, cast(Instruction, c), fs->ls->lastline); |
| 828 | } |
| 829 | fs->freereg = base + 1; /* free registers with list values */ |
| 830 | } |
| 831 |
no test coverage detected