Add psemek_ecs_define_component_ext
All checks were successful
Run tests / Run tests (push) Successful in 7m12s
All checks were successful
Run tests / Run tests (push) Successful in 7m12s
This commit is contained in:
parent
4aa6760f64
commit
ff7eb827fe
1 changed files with 5 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue