MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / write_if

Method write_if

modules/gdscript/gdscript_byte_codegen.cpp:1520–1525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1518}
1519
1520void 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
1527void GDScriptByteCodeGenerator::write_else() {
1528 append_opcode(GDScriptFunction::OPCODE_JUMP); // Jump from true if block;

Callers 1

_parse_blockMethod · 0.80

Calls 2

sizeMethod · 0.65
push_backMethod · 0.45

Tested by

no test coverage detected