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

Method write_jump_if_shared

modules/gdscript/gdscript_byte_codegen.cpp:1542–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542void GDScriptByteCodeGenerator::write_jump_if_shared(const Address &p_value) {
1543 append_opcode(GDScriptFunction::OPCODE_JUMP_IF_SHARED);
1544 append(p_value);
1545 if_jmp_addrs.push_back(opcodes.size());
1546 append(0); // Jump destination, will be patched.
1547}
1548
1549void GDScriptByteCodeGenerator::write_end_jump_if_shared() {
1550 patch_jump(if_jmp_addrs.back()->get());

Callers 1

_parse_expressionMethod · 0.80

Calls 2

sizeMethod · 0.65
push_backMethod · 0.45

Tested by

no test coverage detected