MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / jumponcond

Function jumponcond

src/Chain/libraries/glua/lcode.cpp:640–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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