Add psemek_ecs_define_component_ext
All checks were successful
Run tests / Run tests (push) Successful in 7m12s

This commit is contained in:
Nikita Lisitsa 2026-08-14 17:17:03 +03:00
parent 4aa6760f64
commit ff7eb827fe

View file

@ -96,3 +96,8 @@ namespace psemek::ecs::detail
psemek_ecs_define_component_fields_impl(BOOST_PP_VARIADIC_SEQ_TO_SEQ(fields)) \
psemek_ecs_declare_uuid(BOOST_PP_STRINGIZE(cname)) \
};
#define psemek_ecs_define_component_ext(cname, fields) \
struct cname { \
psemek_ecs_define_component_fields_impl(BOOST_PP_VARIADIC_SEQ_TO_SEQ(fields)) \
psemek_ecs_declare_uuid(BOOST_PP_STRINGIZE(cname))