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

Function negatecondition

libraries/AP_Scripting/lua/src/lcode.c:832–837  ·  view source on GitHub ↗

** Negate condition 'e' (where 'e' is a comparison). */

Source from the content-addressed store, hash-verified

830** Negate condition 'e' (where 'e' is a comparison).
831*/
832static void negatecondition (FuncState *fs, expdesc *e) {
833 Instruction *pc = getjumpcontrol(fs, e->u.info);
834 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET &&
835 GET_OPCODE(*pc) != OP_TEST);
836 SETARG_A(*pc, !(GETARG_A(*pc)));
837}
838
839
840/*

Callers 2

luaK_goiftrueFunction · 0.85
codenotFunction · 0.85

Calls 1

getjumpcontrolFunction · 0.85

Tested by

no test coverage detected