Skip to content

Commit e07d3b9

Browse files
authored
Merge pull request #672 from bradc6/bugfix/NormalizedNorspaceInMacros
2 parents f3315ae + 76c4adb commit e07d3b9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/godot_cpp/core/class_db.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,17 @@ class ClassDB {
121121
};
122122

123123
#define BIND_CONSTANT(m_constant) \
124-
ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
124+
godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
125125

126126
#define BIND_ENUM_CONSTANT(m_constant) \
127-
ClassDB::bind_integer_constant(get_class_static(), __constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
127+
godot::ClassDB::bind_integer_constant(get_class_static(), godot::__constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
128128

129129
#define BIND_VIRTUAL_METHOD(m_class, m_method) \
130130
{ \
131131
auto ___call##m_method = [](GDNativeObjectPtr p_instance, const GDNativeTypePtr *p_args, GDNativeTypePtr p_ret) -> void { \
132132
call_with_ptr_args(reinterpret_cast<m_class *>(p_instance), &m_class::m_method, p_args, p_ret); \
133133
}; \
134-
ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, ___call##m_method); \
134+
godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, ___call##m_method); \
135135
}
136136

137137
template <class T>

include/godot_cpp/core/object.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242

4343
#include <vector>
4444

45-
#define ADD_SIGNAL(m_signal) ClassDB::add_signal(get_class_static(), m_signal)
46-
#define ADD_GROUP(m_name, m_prefix) ClassDB::add_property_group(get_class_static(), m_name, m_prefix)
47-
#define ADD_SUBGROUP(m_name, m_prefix) ClassDB::add_property_subgroup(get_class_static(), m_name, m_prefix)
48-
#define ADD_PROPERTY(m_property, m_setter, m_getter) ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter)
45+
#define ADD_SIGNAL(m_signal) godot::ClassDB::add_signal(get_class_static(), m_signal)
46+
#define ADD_GROUP(m_name, m_prefix) godot::ClassDB::add_property_group(get_class_static(), m_name, m_prefix)
47+
#define ADD_SUBGROUP(m_name, m_prefix) godot::ClassDB::add_property_subgroup(get_class_static(), m_name, m_prefix)
48+
#define ADD_PROPERTY(m_property, m_setter, m_getter) godot::ClassDB::add_property(get_class_static(), m_property, m_setter, m_getter)
4949

5050
namespace godot {
5151

0 commit comments

Comments
 (0)