summaryrefslogtreecommitdiffstats
path: root/core/variant/callable.h
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-12 12:13:04 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-12 12:13:04 -0600
commitcc6ee3e956309de046dc1ed09b2f38a5ec7a76c7 (patch)
tree8fac3221341ccada8ebef5afdf608b2b85f33ee9 /core/variant/callable.h
parent75dc6e19cdfcc1d32b40cefbd1b36360fcafe493 (diff)
parente379cc76e5e4cdba8393ed5988f12a6c46a77493 (diff)
downloadredot-engine-cc6ee3e956309de046dc1ed09b2f38a5ec7a76c7.tar.gz
Merge pull request #98713 from dalexeev/core-fix-callable-get-bound-arguments
Core: Fix `Callable.get_bound_arguments{,_count}()` return incorrect data
Diffstat (limited to 'core/variant/callable.h')
-rw-r--r--core/variant/callable.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/variant/callable.h b/core/variant/callable.h
index e3c940a0e5..e76b888ac2 100644
--- a/core/variant/callable.h
+++ b/core/variant/callable.h
@@ -111,8 +111,9 @@ public:
CallableCustom *get_custom() const;
int get_argument_count(bool *r_is_valid = nullptr) const;
int get_bound_arguments_count() const;
- void get_bound_arguments_ref(Vector<Variant> &r_arguments, int &r_argcount) const; // Internal engine use, the exposed one is below.
+ void get_bound_arguments_ref(Vector<Variant> &r_arguments) const; // Internal engine use, the exposed one is below.
Array get_bound_arguments() const;
+ int get_unbound_arguments_count() const;
uint32_t hash() const;
@@ -158,7 +159,8 @@ public:
virtual const Callable *get_base_comparator() const;
virtual int get_argument_count(bool &r_is_valid) const;
virtual int get_bound_arguments_count() const;
- virtual void get_bound_arguments(Vector<Variant> &r_arguments, int &r_argcount) const;
+ virtual void get_bound_arguments(Vector<Variant> &r_arguments) const;
+ virtual int get_unbound_arguments_count() const;
CallableCustom();
virtual ~CallableCustom() {}