summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/class_db.hpp
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-03-11 12:43:00 -0500
committerGitHub <noreply@github.com>2024-03-11 12:43:00 -0500
commit7cff8ca8965ed6336a28ea50daf805736f908daf (patch)
treeb440ec6e3db20cc8bf5fc93ba1326555b01d97a0 /include/godot_cpp/core/class_db.hpp
parentcc1217a43cab5ff8377c2f5e53301fda67def95e (diff)
parente6077906474ba3c3d31b59ea079b3381ae5b0095 (diff)
downloadredot-cpp-7cff8ca8965ed6336a28ea50daf805736f908daf.tar.gz
Merge pull request #1408 from Zylann/fix_explicit_namespace_in_macros
Fix explicit namespaces in macros
Diffstat (limited to 'include/godot_cpp/core/class_db.hpp')
-rw-r--r--include/godot_cpp/core/class_db.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/godot_cpp/core/class_db.hpp b/include/godot_cpp/core/class_db.hpp
index 91748e6..65960a8 100644
--- a/include/godot_cpp/core/class_db.hpp
+++ b/include/godot_cpp/core/class_db.hpp
@@ -184,20 +184,20 @@ public:
};
#define BIND_CONSTANT(m_constant) \
- godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
+ ::godot::ClassDB::bind_integer_constant(get_class_static(), "", #m_constant, m_constant);
#define BIND_ENUM_CONSTANT(m_constant) \
- godot::ClassDB::bind_integer_constant(get_class_static(), godot::_gde_constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
+ ::godot::ClassDB::bind_integer_constant(get_class_static(), ::godot::_gde_constant_get_enum_name(m_constant, #m_constant), #m_constant, m_constant);
#define BIND_BITFIELD_FLAG(m_constant) \
- godot::ClassDB::bind_integer_constant(get_class_static(), godot::_gde_constant_get_bitfield_name(m_constant, #m_constant), #m_constant, m_constant, true);
+ ::godot::ClassDB::bind_integer_constant(get_class_static(), ::godot::_gde_constant_get_bitfield_name(m_constant, #m_constant), #m_constant, m_constant, true);
#define BIND_VIRTUAL_METHOD(m_class, m_method) \
{ \
auto _call##m_method = [](GDExtensionObjectPtr p_instance, const GDExtensionConstTypePtr *p_args, GDExtensionTypePtr p_ret) -> void { \
call_with_ptr_args(reinterpret_cast<m_class *>(p_instance), &m_class::m_method, p_args, p_ret); \
}; \
- godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, _call##m_method); \
+ ::godot::ClassDB::bind_virtual_method(m_class::get_class_static(), #m_method, _call##m_method); \
}
template <class T, bool is_abstract>