MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / jumponcond

Function jumponcond

ThirdParty/lua/lua/lcode.c:639–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637
638
639static int jumponcond (FuncState *fs, expdesc *e, int cond) {
640 if (e->k == VRELOCABLE) {
641 Instruction ie = getcode(fs, e);
642 if (GET_OPCODE(ie) == OP_NOT) {
643 fs->pc--; /* remove previous OP_NOT */
644 return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond);
645 }
646 /* else go through */
647 }
648 discharge2anyreg(fs, e);
649 freeexp(fs, e);
650 return condjump(fs, OP_TESTSET, NO_REG, e->u.info, cond);
651}
652
653
654void luaK_goiftrue (FuncState *fs, expdesc *e) {

Callers 2

luaK_goiftrueFunction · 0.85
luaK_goiffalseFunction · 0.85

Calls 3

condjumpFunction · 0.85
discharge2anyregFunction · 0.85
freeexpFunction · 0.85

Tested by

no test coverage detected