summaryrefslogtreecommitdiff
path: root/modules/gdnative/include
diff options
context:
space:
mode:
authorsheepandshepherd <sheepandshepherd@hotmail.com>2019-10-21 17:44:56 +0200
committersheepandshepherd <sheepandshepherd@hotmail.com>2020-01-03 04:27:13 +0100
commit3056c4bd5acc4b5eda71303bf349e0d4f94a89c8 (patch)
tree87775b85c3e732a13a5fa813d0623537844bbbc6 /modules/gdnative/include
parent27b74f42b4fd6b6e56b7a4924697d8881488bee1 (diff)
Expose cast_to to GDNative for dynamic casts
Diffstat (limited to 'modules/gdnative/include')
-rw-r--r--modules/gdnative/include/gdnative/gdnative.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdnative/include/gdnative/gdnative.h b/modules/gdnative/include/gdnative/gdnative.h
index 5a6333e814..2fe59b8a73 100644
--- a/modules/gdnative/include/gdnative/gdnative.h
+++ b/modules/gdnative/include/gdnative/gdnative.h
@@ -286,6 +286,10 @@ void GDAPI godot_print(const godot_string *p_message);
bool GDAPI godot_is_instance_valid(const godot_object *p_object);
+//tags used for safe dynamic casting
+void GDAPI *godot_get_class_tag(const godot_string_name *p_class);
+godot_object GDAPI *godot_object_cast_to(const godot_object *p_object, void *p_class_tag);
+
#ifdef __cplusplus
}
#endif