MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaK_codeABC

Function luaK_codeABC

depends/lua/src/lcode.c:312–318  ·  view source on GitHub ↗

** Format and emit an 'iABC' instruction. (Assertions check consistency ** of parameters versus opcode.) */

Source from the content-addressed store, hash-verified

310** of parameters versus opcode.)
311*/
312int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) {
313 lua_assert(getOpMode(o) == iABC);
314 lua_assert(getBMode(o) != OpArgN || b == 0);
315 lua_assert(getCMode(o) != OpArgN || c == 0);
316 lua_assert(a <= MAXARG_A && b <= MAXARG_B && c <= MAXARG_C);
317 return luaK_code(fs, CREATE_ABC(o, a, b, c));
318}
319
320
321/*

Callers 15

recfieldFunction · 0.85
constructorFunction · 0.85
funcargsFunction · 0.85
simpleexpFunction · 0.85
check_conflictFunction · 0.85
forbodyFunction · 0.85
luaK_nilFunction · 0.85
luaK_retFunction · 0.85
condjumpFunction · 0.85
luaK_dischargevarsFunction · 0.85
discharge2regFunction · 0.85
code_loadboolFunction · 0.85

Calls 1

luaK_codeFunction · 0.85

Tested by

no test coverage detected