summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-10 13:08:10 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-10 13:56:27 +0100
commit33d3b7eea77517cd2fcce59c5e9128aa74511f9f (patch)
tree7e6eebb865de9b2a38589379644e557bf448577f /doc
parent91713ced81792b10fdc9367b7f355738e5d52777 (diff)
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 'doc')
-rw-r--r--doc/classes/Callable.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/Callable.xml b/doc/classes/Callable.xml
index a6fffae8b5..d1fdaef29c 100644
--- a/doc/classes/Callable.xml
+++ b/doc/classes/Callable.xml
@@ -107,6 +107,12 @@
Calls the method represented by this [Callable]. Unlike [method call], this method expects all arguments to be contained inside the [param arguments] [Array].
</description>
</method>
+ <method name="get_bound_arguments" qualifiers="const">
+ <return type="Array" />
+ <description>
+ Return the bound arguments (as long as [method get_bound_arguments_count] is greater than zero), or empty (if [method get_bound_arguments_count] is less than or equal to zero).
+ </description>
+ </method>
<method name="get_bound_arguments_count" qualifiers="const">
<return type="int" />
<description>