MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaK_code

Function luaK_code

lib/lua/src/lcode.c:382–390  ·  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

380** line information. Return 'i' position.
381*/
382int 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/*

Callers 6

constructorFunction · 0.85
luaK_codeABCkFunction · 0.85
luaK_codeABxFunction · 0.85
codeAsBxFunction · 0.85
codesJFunction · 0.85
codeextraargFunction · 0.85

Calls 1

savelineinfoFunction · 0.85

Tested by

no test coverage detected