diff options
author | Juan Linietsky <reduzio@gmail.com> | 2023-01-10 13:08:10 +0100 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2023-01-10 13:56:27 +0100 |
commit | 33d3b7eea77517cd2fcce59c5e9128aa74511f9f (patch) | |
tree | 7e6eebb865de9b2a38589379644e557bf448577f /core/variant/variant_call.cpp | |
parent | 91713ced81792b10fdc9367b7f355738e5d52777 (diff) | |
download | redot-engine-33d3b7eea77517cd2fcce59c5e9128aa74511f9f.tar.gz |
Fix Callable call error reporting.
* Fix potential crash when using bind in `Variant::get_callable_error_text()`
* Properly compute bound arguments so they can be properly shown.
* Add a function to obtain the actual bound arguments.
Diffstat (limited to 'core/variant/variant_call.cpp')
-rw-r--r-- | core/variant/variant_call.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 6c06b63dab..05fb62ff12 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -2017,6 +2017,7 @@ static void _register_variant_builtin_methods() { bind_method(Callable, get_object_id, sarray(), varray()); bind_method(Callable, get_method, sarray(), varray()); bind_method(Callable, get_bound_arguments_count, sarray(), varray()); + bind_method(Callable, get_bound_arguments, sarray(), varray()); bind_method(Callable, hash, sarray(), varray()); bind_method(Callable, bindv, sarray("arguments"), varray()); bind_method(Callable, unbind, sarray("argcount"), varray()); |