Skip to content

Commit e607790

Browse files
committed
Fix explicit namespaces in macros
1 parent cc1217a commit e607790

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/godot_cpp/core/class_db.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,20 @@ class ClassDB {
184184
};
185185

186186
#define BIND_CONSTANT(m_constant) \
187-
godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
187+
::godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
188188

189189
#define BIND_ENUM_CONSTANT(m_constant) \
190-
godot::ClassDB::bind_integer_constant(get_class_static(), godot::_gde_constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
190+
::godot::ClassDB::bind_integer_constant(get_class_static(), ::godot::_gde_constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
191191

192192
#define BIND_BITFIELD_FLAG(m_constant) \
193-
godot::ClassDB::bind_integer_constant(get_class_static(), godot::_gde_constant_get_bitfield_name(m_constant, #m_constant), #m_constant, m_constant, true);
193+
::godot::ClassDB::bind_integer_constant(get_class_static(), ::godot::_gde_constant_get_bitfield_name(m_constant, #m_constant), #m_constant, m_constant, true);
194194

195195
#define BIND_VIRTUAL_METHOD(m_class, m_method) \
196196
{ \
197197
auto _call##m_method = [](GDExtensionObjectPtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr p_ret) -> void { \
198198
call_with_ptr_args(reinterpret_cast<m_class *>(p_instance), &m_class::m_method, p_args, p_ret); \
199199
}; \
200-
godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, _call##m_method); \
200+
::godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, _call##m_method); \
201201
}
202202

203203
template <class T, bool is_abstract>

include/godot_cpp/core/object.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747

4848
#include <vector>
4949

50-
#define ADD_SIGNAL(m_signal) godot::ClassDB::add_signal(get_class_static(), m_signal)
51-
#define ADD_GROUP(m_name, m_prefix) godot::ClassDB::add_property_group(get_class_static(), m_name, m_prefix)
52-
#define ADD_SUBGROUP(m_name, m_prefix) godot::ClassDB::add_property_subgroup(get_class_static(), m_name, m_prefix)
53-
#define ADD_PROPERTY(m_property, m_setter, m_getter) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter)
54-
#define ADD_PROPERTYI(m_property, m_setter, m_getter, m_index) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter, m_index)
50+
#define ADD_SIGNAL(m_signal) ::godot::ClassDB::add_signal(get_class_static(), m_signal)
51+
#define ADD_GROUP(m_name, m_prefix) ::godot::ClassDB::add_property_group(get_class_static(), m_name, m_prefix)
52+
#define ADD_SUBGROUP(m_name, m_prefix) ::godot::ClassDB::add_property_subgroup(get_class_static(), m_name, m_prefix)
53+
#define ADD_PROPERTY(m_property, m_setter, m_getter) ::godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter)
54+
#define ADD_PROPERTYI(m_property, m_setter, m_getter, m_index) ::godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter, m_index)
5555

5656
namespace godot {
5757

0 commit comments

Comments
 (0)