| 805 | |
| 806 | |
| 807 | static int luaK_code (FuncState *fs, Instruction i, int line) { |
| 808 | Proto *f = fs->f; |
| 809 | dischargejpc(fs); /* `pc' will change */ |
| 810 | /* put new instruction in code array */ |
| 811 | luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction, |
| 812 | MAX_INT, "code size overflow"); |
| 813 | f->code[fs->pc] = i; |
| 814 | /* save corresponding line information */ |
| 815 | luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int, |
| 816 | MAX_INT, "code size overflow"); |
| 817 | f->lineinfo[fs->pc] = line; |
| 818 | return fs->pc++; |
| 819 | } |
| 820 | |
| 821 | |
| 822 | int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) { |
no test coverage detected