MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaK_code

Function luaK_code

extlibs/lua/src/lcode.c:390–398  ·  view source on GitHub ↗

** Emit instruction 'i', checking for array sizes and saving also its ** line information. Return 'i' position. */

Source from the content-addressed store, hash-verified

388** line information. Return 'i' position.
389*/
390int 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/*

Callers 6

constructorFunction · 0.85
luaK_codeABCkFunction · 0.85
luaK_codeABxFunction · 0.85
luaK_codeAsBxFunction · 0.85
codesJFunction · 0.85
codeextraargFunction · 0.85

Calls 1

savelineinfoFunction · 0.85

Tested by

no test coverage detected