Skip to content

Commit

Permalink
add missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jun 13, 2024
1 parent b2b92de commit 1dfd0a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/babylon/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include BABYLON_EXTERNAL(absl/base/optimization.h) // ABSL_PREDICT_FALSE
// clang-format on

#include <cassert> // ::assert
#include <cassert> // ::assert

BABYLON_NAMESPACE_BEGIN

Expand Down
23 changes: 12 additions & 11 deletions src/babylon/application_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ ApplicationContext::FactoryComponentHolder<T, BS...>::create() noexcept {
////////////////////////////////////////////////////////////////////////////////
// ApplicationContext::ComponentRegister begin
template <typename T>
ApplicationContext::ComponentRegister<T>::ComponentRegister(StringView name) noexcept {
ApplicationContext::ComponentRegister<T>::ComponentRegister(
StringView name) noexcept {
ApplicationContext::instance().register_component(T::create(), name);
}
// ApplicationContext::ComponentRegister end
Expand Down Expand Up @@ -870,17 +871,17 @@ BABYLON_NAMESPACE_END
BOOST_PP_IF(BOOST_PP_LESS(BOOST_PP_TUPLE_SIZE(args), 2), \
BOOST_PP_TUPLE_PUSH_BACK(args, ""), args)

#define __BABYLON_REGISTER_COMPONENT(T, name, ...) \
static ::babylon::ApplicationContext::ComponentRegister< \
::babylon::ApplicationContext::DefaultComponentHolder<T, ##__VA_ARGS__>> \
#define __BABYLON_REGISTER_COMPONENT(T, name, ...) \
static ::babylon::ApplicationContext::ComponentRegister< \
::babylon::ApplicationContext::DefaultComponentHolder<T, ##__VA_ARGS__>> \
BOOST_PP_CAT(Babylon_Application_Context_Register, __COUNTER__) {name};

#define BABYLON_REGISTER_FACTORY_COMPONENT(T, ...) \
BOOST_PP_EXPAND( \
__BABYLON_REGISTER_FACTORY_COMPONENT __BABYLON_REGISTER_COMPONENT_FILL_ARGS( \
(T, ##__VA_ARGS__)))
#define BABYLON_REGISTER_FACTORY_COMPONENT(T, ...) \
BOOST_PP_EXPAND( \
__BABYLON_REGISTER_FACTORY_COMPONENT \
__BABYLON_REGISTER_COMPONENT_FILL_ARGS((T, ##__VA_ARGS__)))

#define __BABYLON_REGISTER_FACTORY_COMPONENT(T, name, ...) \
static ::babylon::ApplicationContext::ComponentRegister< \
::babylon::ApplicationContext::FactoryComponentHolder<T, ##__VA_ARGS__>> \
#define __BABYLON_REGISTER_FACTORY_COMPONENT(T, name, ...) \
static ::babylon::ApplicationContext::ComponentRegister< \
::babylon::ApplicationContext::FactoryComponentHolder<T, ##__VA_ARGS__>> \
BOOST_PP_CAT(Babylon_Application_Context_Register, __COUNTER__) {name};

0 comments on commit 1dfd0a9

Please sign in to comment.