| 4464 | |
| 4465 | |
| 4466 | static int luaK_code (FuncState *fs, Instruction i, int line) { |
| 4467 | Proto *f = fs->f; |
| 4468 | dischargejpc(fs); /* `pc' will change */ |
| 4469 | /* put new instruction in code array */ |
| 4470 | luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction, |
| 4471 | MAX_INT, "code size overflow"); |
| 4472 | f->code[fs->pc] = i; |
| 4473 | /* save corresponding line information */ |
| 4474 | luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int, |
| 4475 | MAX_INT, "code size overflow"); |
| 4476 | f->lineinfo[fs->pc] = line; |
| 4477 | return fs->pc++; |
| 4478 | } |
| 4479 | |
| 4480 | |
| 4481 | int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) { |
no test coverage detected