summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorMarc Gilleron <marc.gilleron@gmail.com>2022-02-20 19:23:14 +0000
committerMarc Gilleron <marc.gilleron@gmail.com>2022-02-20 19:33:00 +0000
commit6fdcb18f6a2c3d3ed1525b3a1386ab92447d1109 (patch)
tree1b859d72b1ad7be544cdb60f6db3af2b29a7aa56 /include/godot_cpp
parent4d9fe6dfaaee892e9b369093c20df9fe1a2ef767 (diff)
downloadredot-cpp-6fdcb18f6a2c3d3ed1525b3a1386ab92447d1109.tar.gz
Fix GDCLASS when inherited class is in another namespace
Diffstat (limited to 'include/godot_cpp')
-rw-r--r--include/godot_cpp/classes/wrapped.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 5c9b74d..d13d1e8 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -54,6 +54,10 @@ protected:
Wrapped(GodotObject *p_godot_object);
public:
+ static const char *get_class_static() {
+ return "Wrapped";
+ }
+
// Must be public but you should not touch this.
GodotObject *_owner = nullptr;
};
@@ -102,7 +106,7 @@ public:
} \
\
static const char *get_parent_class_static() { \
- return #m_inherits; \
+ return m_inherits::get_class_static(); \
} \
\
static GDNativeObjectPtr create(void *data) { \
@@ -157,7 +161,7 @@ public:
} \
\
static const char *get_parent_class_static() { \
- return #m_inherits; \
+ return m_inherits::get_class_static(); \
} \
\
static void *___binding_create_callback(void *p_token, void *p_instance) { \