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