| 1362 | } |
| 1363 | |
| 1364 | void GDScriptByteCodeGenerator::write_call_self_async(const Address &p_target, const StringName &p_function_name, const Vector<Address> &p_arguments) { |
| 1365 | append_opcode_and_argcount(GDScriptFunction::OPCODE_CALL_ASYNC, 2 + p_arguments.size()); |
| 1366 | for (int i = 0; i < p_arguments.size(); i++) { |
| 1367 | append(p_arguments[i]); |
| 1368 | } |
| 1369 | append(GDScriptFunction::ADDR_SELF); |
| 1370 | CallTarget ct = get_call_target(p_target); |
| 1371 | append(ct.target); |
| 1372 | append(p_arguments.size()); |
| 1373 | append(p_function_name); |
| 1374 | ct.cleanup(); |
| 1375 | } |
| 1376 | |
| 1377 | void GDScriptByteCodeGenerator::write_call_script_function(const Address &p_target, const Address &p_base, const StringName &p_function_name, const Vector<Address> &p_arguments) { |
| 1378 | append_opcode_and_argcount(p_target.mode == Address::NIL ? GDScriptFunction::OPCODE_CALL : GDScriptFunction::OPCODE_CALL_RETURN, 2 + p_arguments.size()); |
no test coverage detected