MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / negatecondition

Function negatecondition

extlibs/lua/src/lcode.c:1084–1089  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1082** Negate condition 'e' (where 'e' is a comparison).
1083*/
1084static void negatecondition (FuncState *fs, expdesc *e) {
1085 Instruction *pc = getjumpcontrol(fs, e->u.info);
1086 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET &&
1087 GET_OPCODE(*pc) != OP_TEST);
1088 SETARG_k(*pc, (GETARG_k(*pc) ^ 1));
1089}
1090
1091
1092/*

Callers 2

luaK_goiftrueFunction · 0.85
codenotFunction · 0.85

Calls 1

getjumpcontrolFunction · 0.85

Tested by

no test coverage detected