MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaK_codeABC

Function luaK_codeABC

libraries/AP_Scripting/lua/src/lcode.c:319–325  ·  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

317** of parameters versus opcode.)
318*/
319int luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) {
320 lua_assert(getOpMode(o) == iABC);
321 lua_assert(getBMode(o) != OpArgN || b == 0);
322 lua_assert(getCMode(o) != OpArgN || c == 0);
323 lua_assert(a <= MAXARG_A && b <= MAXARG_B && c <= MAXARG_C);
324 return luaK_code(fs, CREATE_ABC(o, a, b, c));
325}
326
327
328/*

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