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

Function luaK_code

third-party/lua-5.2.4/src/lcode.c:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211
212static int luaK_code (FuncState *fs, Instruction i) {
213 Proto *f = fs->f;
214 dischargejpc(fs); /* `pc' will change */
215 /* put new instruction in code array */
216 luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
217 MAX_INT, "opcodes");
218 f->code[fs->pc] = i;
219 /* save corresponding line information */
220 luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
221 MAX_INT, "opcodes");
222 f->lineinfo[fs->pc] = fs->ls->lastline;
223 return fs->pc++;
224}
225
226
227int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) {

Callers 3

luaK_codeABCFunction · 0.70
luaK_codeABxFunction · 0.70
codeextraargFunction · 0.70

Calls 1

dischargejpcFunction · 0.70

Tested by

no test coverage detected