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

Function negatecondition

third-party/lua-5.3.5/src/lcode.c:825–830  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

823** Negate condition 'e' (where 'e' is a comparison).
824*/
825static void negatecondition (FuncState *fs, expdesc *e) {
826 Instruction *pc = getjumpcontrol(fs, e->u.info);
827 lua_assert(testTMode(GET_OPCODE(*pc)) && GET_OPCODE(*pc) != OP_TESTSET &&
828 GET_OPCODE(*pc) != OP_TEST);
829 SETARG_A(*pc, !(GETARG_A(*pc)));
830}
831
832
833/*

Callers 2

luaK_goiftrueFunction · 0.70
codenotFunction · 0.70

Calls 1

getjumpcontrolFunction · 0.70

Tested by

no test coverage detected