Allow GDCLASS in own namespaces

The unqualified ClassDB friending was causing (at least for me on
VS2022) an implicit forward declaration of ClassDB in the namespace
of my class, instead of using the godot namespaced one. By qualifying
the namespace, this compiles for me.

Test-Information:
My project builds now.
pull/799/head
Kevin Smith 2022-07-31 11:46:35 +01:00
parent 9aa129caab
commit fd8173f109
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public:
#define GDCLASS(m_class, m_inherits) \ #define GDCLASS(m_class, m_inherits) \
private: \ private: \
void operator=(const m_class &p_rval) {} \ void operator=(const m_class &p_rval) {} \
friend class ClassDB; \ friend class ::godot::ClassDB; \
\ \
protected: \ protected: \
virtual const char *_get_extension_class() const override { \ virtual const char *_get_extension_class() const override { \