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