MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / jumponcond

Function jumponcond

Source/Misc/lua/src/lua.c:4193–4205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4191
4192
4193static int jumponcond (FuncState *fs, expdesc *e, int cond) {
4194if (e->k == VRELOCABLE) {
4195Instruction ie = getcode(fs, e);
4196if (GET_OPCODE(ie) == OP_NOT) {
4197fs->pc--; /* remove previous OP_NOT */
4198return condjump(fs, OP_TEST, GETARG_B(ie), 0, !cond);
4199}
4200/* else go through */
4201}
4202discharge2anyreg(fs, e);
4203freeexp(fs, e);
4204return condjump(fs, OP_TESTSET, NO_REG, e->u.s.info, cond);
4205}
4206
4207
4208void 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