MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_code

Function luaK_code

third-party/lua-5.4.6/src/lcode.c:383–391  ·  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

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

Callers 6

constructorFunction · 0.70
luaK_codeABCkFunction · 0.70
luaK_codeABxFunction · 0.70
codeAsBxFunction · 0.70
codesJFunction · 0.70
codeextraargFunction · 0.70

Calls 1

savelineinfoFunction · 0.70

Tested by

no test coverage detected