diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2022-02-21 11:27:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-21 11:27:31 +0100 |
| commit | d154ffbe869fd26818a344201278bfd39ede8348 (patch) | |
| tree | 60822985c17ce613c369028c5306ded0ccc36615 /include/godot_cpp | |
| parent | 76bad22978965b3f9b8c95d7ec8795bd4025d4db (diff) | |
| parent | 6fdcb18f6a2c3d3ed1525b3a1386ab92447d1109 (diff) | |
| download | redot-cpp-d154ffbe869fd26818a344201278bfd39ede8348.tar.gz | |
Merge pull request #708 from Zylann/fix_inheriting_class_with_namespace
Diffstat (limited to 'include/godot_cpp')
| -rw-r--r-- | include/godot_cpp/classes/wrapped.hpp | 8 |
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) { \ |
