diff options
author | reduz <reduzio@gmail.com> | 2020-10-13 15:59:37 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-10-14 15:24:30 +0200 |
commit | b8c64184c628dba6b54b4beb5a38e292a182bd6f (patch) | |
tree | 7ffaba5d7fecfb9d16e0c47a18ffdd98117a2eea /core/array.h | |
parent | bc91e088e4503bbf1c5800282f2974011a4cc8e8 (diff) | |
download | redot-engine-b8c64184c628dba6b54b4beb5a38e292a182bd6f.tar.gz |
Refactored binding system for core types
Moved to a system using variadic templates, shared with CallableBind.
New code is cleaner, faster and allows for much better optimization of core
type functions from GDScript and GDNative.
Added Variant::InternalMethod function for direct call access.
Diffstat (limited to 'core/array.h')
-rw-r--r-- | core/array.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/array.h b/core/array.h index d2e0537ad5..34367088e4 100644 --- a/core/array.h +++ b/core/array.h @@ -75,12 +75,12 @@ public: Variant front() const; Variant back() const; - Array &sort(); - Array &sort_custom(Object *p_obj, const StringName &p_function); + void sort(); + void sort_custom(Object *p_obj, const StringName &p_function); void shuffle(); int bsearch(const Variant &p_value, bool p_before = true); int bsearch_custom(const Variant &p_value, Object *p_obj, const StringName &p_function, bool p_before = true); - Array &invert(); + void invert(); int find(const Variant &p_value, int p_from = 0) const; int rfind(const Variant &p_value, int p_from = -1) const; |