| 1518 | } |
| 1519 | |
| 1520 | void GDScriptByteCodeGenerator::write_if(const Address &p_condition) { |
| 1521 | append_opcode(GDScriptFunction::OPCODE_JUMP_IF_NOT); |
| 1522 | append(p_condition); |
| 1523 | if_jmp_addrs.push_back(opcodes.size()); |
| 1524 | append(0); // Jump destination, will be patched. |
| 1525 | } |
| 1526 | |
| 1527 | void GDScriptByteCodeGenerator::write_else() { |
| 1528 | append_opcode(GDScriptFunction::OPCODE_JUMP); // Jump from true if block; |
no test coverage detected