From 8269c0102a42f80f6e732af5f326a6e6a4fd3b51 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Sat, 1 Jun 2024 08:45:23 -0500 Subject: [PATCH] Explicitly refer to `godot` namespace in `GDREGISTER_*_CLASS()` macros (cherry picked from commit 246a803954b288138f1ef6b3536321098b3b3675) --- include/godot_cpp/core/class_db.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/godot_cpp/core/class_db.hpp b/include/godot_cpp/core/class_db.hpp index 752c4390..988d4d1d 100644 --- a/include/godot_cpp/core/class_db.hpp +++ b/include/godot_cpp/core/class_db.hpp @@ -286,9 +286,9 @@ MethodBind *ClassDB::bind_vararg_method(uint32_t p_flags, StringName p_name, M p return bind; } -#define GDREGISTER_CLASS(m_class) ClassDB::register_class(); -#define GDREGISTER_VIRTUAL_CLASS(m_class) ClassDB::register_class(true); -#define GDREGISTER_ABSTRACT_CLASS(m_class) ClassDB::register_abstract_class(); +#define GDREGISTER_CLASS(m_class) ::godot::ClassDB::register_class(); +#define GDREGISTER_VIRTUAL_CLASS(m_class) ::godot::ClassDB::register_class(true); +#define GDREGISTER_ABSTRACT_CLASS(m_class) ::godot::ClassDB::register_abstract_class(); } // namespace godot