MCPcopy Create free account
hub / github.com/Tencent/UnLua / negatecondition

Function negatecondition

Plugins/UnLua/Source/ThirdParty/Lua/lua-5.4.3/src/lcode.c:1083–1088  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

luaK_goiftrueFunction · 0.85
codenotFunction · 0.85

Calls 1

getjumpcontrolFunction · 0.85

Tested by

no test coverage detected