| 4494 | |
| 4495 | |
| 4496 | void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) { |
| 4497 | int c = (nelems - 1)/LFIELDS_PER_FLUSH + 1; |
| 4498 | int b = (tostore == LUA_MULTRET) ? 0 : tostore; |
| 4499 | lua_assert(tostore != 0); |
| 4500 | if (c <= MAXARG_C) |
| 4501 | luaK_codeABC(fs, OP_SETLIST, base, b, c); |
| 4502 | else { |
| 4503 | luaK_codeABC(fs, OP_SETLIST, base, b, 0); |
| 4504 | luaK_code(fs, cast(Instruction, c), fs->ls->lastline); |
| 4505 | } |
| 4506 | fs->freereg = base + 1; /* free registers with list values */ |
| 4507 | } |
| 4508 | |
| 4509 | /* |
| 4510 | ** $Id: ldebug.c,v 2.29.1.6 2008/05/08 16:56:26 roberto Exp $ |
no test coverage detected