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

Method write_call

modules/gdscript/gdscript_byte_codegen.cpp:1092–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090}
1091
1092void GDScriptByteCodeGenerator::write_call(const Address &p_target, const Address &p_base, const StringName &p_function_name, const Vector<Address> &p_arguments) {
1093 append_opcode_and_argcount(p_target.mode == Address::NIL ? GDScriptFunction::OPCODE_CALL : GDScriptFunction::OPCODE_CALL_RETURN, 2 + p_arguments.size());
1094 for (int i = 0; i < p_arguments.size(); i++) {
1095 append(p_arguments[i]);
1096 }
1097 append(p_base);
1098 CallTarget ct = get_call_target(p_target);
1099 append(ct.target);
1100 append(p_arguments.size());
1101 append(p_function_name);
1102 ct.cleanup();
1103}
1104
1105void GDScriptByteCodeGenerator::write_super_call(const Address &p_target, const StringName &p_function_name, const Vector<Address> &p_arguments) {
1106 append_opcode_and_argcount(GDScriptFunction::OPCODE_CALL_SELF_BASE, 1 + p_arguments.size());

Callers 3

_parse_expressionMethod · 0.80
_parse_match_patternMethod · 0.80

Calls 2

sizeMethod · 0.65
cleanupMethod · 0.45

Tested by

no test coverage detected