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

Function negatecondition

third-party/lua-5.5.0/src/lcode.c:1146–1151  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1144** Negate condition 'e' (where 'e' is a comparison).
1145*/
1146static void negatecondition (FuncState *fs, expdesc *e) {
1147 Instruction *pc = getjumpcontrol(fs, e->u.info);
1148 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET &&
1149 GET_OPCODE(*pc) != OP_TEST);
1150 SETARG_k(*pc, (GETARG_k(*pc) ^ 1));
1151}
1152
1153
1154/*

Callers 2

luaK_goiftrueFunction · 0.70
codenotFunction · 0.70

Calls 1

getjumpcontrolFunction · 0.70

Tested by

no test coverage detected