MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / negatecondition

Function negatecondition

third-party/lua-5.4.6/src/lcode.c:1103–1108  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

luaK_goiftrueFunction · 0.70
codenotFunction · 0.70

Calls 1

getjumpcontrolFunction · 0.70

Tested by

no test coverage detected