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

Function negatecondition

lib/lua/src/lcode.c:1102–1107  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1100** Negate condition 'e' (where 'e' is a comparison).
1101*/
1102static void negatecondition (FuncState *fs, expdesc *e) {
1103 Instruction *pc = getjumpcontrol(fs, e->u.info);
1104 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET &&
1105 GET_OPCODE(*pc) != OP_TEST);
1106 SETARG_k(*pc, (GETARG_k(*pc) ^ 1));
1107}
1108
1109
1110/*

Callers 2

luaK_goiftrueFunction · 0.85
codenotFunction · 0.85

Calls 1

getjumpcontrolFunction · 0.85

Tested by

no test coverage detected