summaryrefslogtreecommitdiffstats
path: root/modules/mono/mono_gd/gd_mono_utils.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2018-09-12 20:58:41 +0200
committerGitHub <noreply@github.com>2018-09-12 20:58:41 +0200
commit9de03997ecfacd7d3e5d2e65536a2fe50e8c79b7 (patch)
tree2463a842e7a1731aafa3e08cbe7860b719421b89 /modules/mono/mono_gd/gd_mono_utils.h
parentcdc5264a3ef08c0e6805eb38d3f632ca21a5171e (diff)
parent6ae47ff19b4e55fb7e68ea8453d786cc6216198d (diff)
downloadredot-engine-9de03997ecfacd7d3e5d2e65536a2fe50e8c79b7.tar.gz
Merge pull request #22005 from neikeq/issue-17581
C#: Fix explicit enum values when exporting member
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_utils.h')
-rw-r--r--modules/mono/mono_gd/gd_mono_utils.h2
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 c8e23f071f..96ff3e8116 100644
--- a/modules/mono/mono_gd/gd_mono_utils.h
+++ b/modules/mono/mono_gd/gd_mono_utils.h
@@ -240,6 +240,8 @@ MonoString *object_to_string(MonoObject *p_obj, MonoException **p_exc);
void property_set_value(MonoProperty *p_prop, void *p_obj, void **p_params, MonoException **p_exc);
MonoObject *property_get_value(MonoProperty *p_prop, void *p_obj, void **p_params, MonoException **p_exc);
+uint64_t unbox_enum_value(MonoObject *p_boxed, MonoType *p_enum_basetype, bool &r_error);
+
} // namespace GDMonoUtils
#define NATIVE_GDMONOCLASS_NAME(m_class) (GDMonoMarshal::mono_string_to_godot((MonoString *)m_class->get_field(BINDINGS_NATIVE_NAME_FIELD)->get_value(NULL)))