| 795 | |
| 796 | |
| 797 | static int luaK_code (FuncState *fs, Instruction i, int line) { |
| 798 | Proto *f = fs->f; |
| 799 | dischargejpc(fs); /* `pc' will change */ |
| 800 | /* put new instruction in code array */ |
| 801 | luaM_growvector(fs->L, f->code, fs->pc, f->sizecode, Instruction, |
| 802 | MAX_INT, "code size overflow"); |
| 803 | f->code[fs->pc] = i; |
| 804 | /* save corresponding line information */ |
| 805 | luaM_growvector(fs->L, f->lineinfo, fs->pc, f->sizelineinfo, int, |
| 806 | MAX_INT, "code size overflow"); |
| 807 | f->lineinfo[fs->pc] = line; |
| 808 | return fs->pc++; |
| 809 | } |
| 810 | |
| 811 | |
| 812 | int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) { |
no test coverage detected