From d6e54de50239e8ac1de645bd411eeddbf627e4dc Mon Sep 17 00:00:00 2001 From: poke1024 Date: Thu, 2 Nov 2017 19:04:38 +0100 Subject: Add bsearch and bsearch_custom to Array --- modules/gdnative/include/gdnative/array.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gdnative/include') diff --git a/modules/gdnative/include/gdnative/array.h b/modules/gdnative/include/gdnative/array.h index 01ae61e28..484ffd10b 100644 --- a/modules/gdnative/include/gdnative/array.h +++ b/modules/gdnative/include/gdnative/array.h @@ -124,6 +124,10 @@ void GDAPI godot_array_sort(godot_array *p_self); void GDAPI godot_array_sort_custom(godot_array *p_self, godot_object *p_obj, const godot_string *p_func); +godot_int GDAPI godot_array_bsearch(godot_array *p_self, const godot_variant *p_value, const godot_bool p_before); + +godot_int GDAPI godot_array_bsearch_custom(godot_array *p_self, const godot_variant *p_value, godot_object *p_obj, const godot_string *p_func, const godot_bool p_before); + void GDAPI godot_array_destroy(godot_array *p_self); #ifdef __cplusplus -- cgit v1.2.3-70-g09d2