diff options
author | Raul Santos <raulsntos@gmail.com> | 2021-12-02 20:05:05 +0100 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2021-12-04 02:54:33 +0100 |
commit | d28be4d5808947606b8189ae1b2900b8fd2925cf (patch) | |
tree | 1878429ad479a4eabad5bfd4b4a0b95a70eaa94a /modules/mono/mono_gd/gd_mono_utils.h | |
parent | 892a5a72cd9b25dc660671b9f4244fd842884b9f (diff) |
Fix get_all_delegates method for generic classes
If the class is generic, we must get its generic type definition and use
it to retrieve the delegates.
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_utils.h')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/mono_gd/gd_mono_utils.h b/modules/mono/mono_gd/gd_mono_utils.h index 773501e93d..3162ef198d 100644 --- a/modules/mono/mono_gd/gd_mono_utils.h +++ b/modules/mono/mono_gd/gd_mono_utils.h @@ -62,6 +62,8 @@ bool type_is_generic_ienumerable(MonoReflectionType *p_reftype); bool type_is_generic_icollection(MonoReflectionType *p_reftype); bool type_is_generic_idictionary(MonoReflectionType *p_reftype); +void get_generic_type_definition(MonoReflectionType *p_reftype, MonoReflectionType **r_generic_reftype); + void array_get_element_type(MonoReflectionType *p_array_reftype, MonoReflectionType **r_elem_reftype); void dictionary_get_key_value_types(MonoReflectionType *p_dict_reftype, MonoReflectionType **r_key_reftype, MonoReflectionType **r_value_reftype); |