| 1115 | } |
| 1116 | |
| 1117 | void GDScriptByteCodeGenerator::write_call_async(const Address &p_target, const Address &p_base, const StringName &p_function_name, const Vector<Address> &p_arguments) { |
| 1118 | append_opcode_and_argcount(GDScriptFunction::OPCODE_CALL_ASYNC, 2 + p_arguments.size()); |
| 1119 | for (int i = 0; i < p_arguments.size(); i++) { |
| 1120 | append(p_arguments[i]); |
| 1121 | } |
| 1122 | append(p_base); |
| 1123 | CallTarget ct = get_call_target(p_target); |
| 1124 | append(ct.target); |
| 1125 | append(p_arguments.size()); |
| 1126 | append(p_function_name); |
| 1127 | ct.cleanup(); |
| 1128 | } |
| 1129 | |
| 1130 | void GDScriptByteCodeGenerator::write_call_gdscript_utility(const Address &p_target, const StringName &p_function, const Vector<Address> &p_arguments) { |
| 1131 | append_opcode_and_argcount(GDScriptFunction::OPCODE_CALL_GDSCRIPT_UTILITY, 1 + p_arguments.size()); |
no test coverage detected