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