** Emit instruction 'i', checking for array sizes and saving also its ** line information. Return 'i' position. */
| 382 | ** line information. Return 'i' position. |
| 383 | */ |
| 384 | int luaK_code (FuncState *fs, Instruction i) { |
| 385 | Proto *f = fs->f; |
| 386 | /* put new instruction in code array */ |
| 387 | luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction, |
| 388 | INT_MAX, "opcodes"); |
| 389 | f->code[fs->pc++] = i; |
| 390 | savelineinfo(fs, f, fs->ls->lastline); |
| 391 | return fs->pc - 1; /* index of new instruction */ |
| 392 | } |
| 393 | |
| 394 | |
| 395 | /* |
no test coverage detected