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