| 835 | |
| 836 | |
| 837 | void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { |
| 838 | int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1; |
| 839 | int b = (tostore == LUA_MULTRET) ? 0 : tostore; |
| 840 | lua_assert(tostore != 0); |
| 841 | if (c <= MAXARG_C) |
| 842 | luaK_codeABC(fs, OP_SETLIST, base, b, c); |
| 843 | else { |
| 844 | luaK_codeABC(fs, OP_SETLIST, base, b, 0); |
| 845 | luaK_code(fs, cast(Instruction, c), fs->ls->lastline); |
| 846 | } |
| 847 | fs->freereg = base + 1; /* free registers with list values */ |
| 848 | } |
no test coverage detected