Skip to content

Commit

Permalink
chore: remove deprecated macro
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed May 23, 2024
1 parent 8385980 commit 64310d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
6 changes: 0 additions & 6 deletions ecsact/runtime/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@
# define ECSACT_ALWAYS_INLINE inline __attribute__((always_inline))
#endif

#ifdef __cplusplus
# define ECSACT_DEPRECATED(Reason) [[deprecated(Reason)]]
#else
# define ECSACT_DEPRECATED(Reason)
#endif

ECSACT_TYPED_ID(ecsact_package_id);
ECSACT_TYPED_ID(ecsact_system_id);
ECSACT_TYPED_ID(ecsact_action_id);
Expand Down
11 changes: 7 additions & 4 deletions ecsact/runtime/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ ECSACT_DYNAMIC_API_FN(void, ecsact_set_system_assoc_capbility)
ecsact_system_capability
);

/**
* @deprecated use ecsact_set_system_assoc_capbility instead
*/
ECSACT_DYNAMIC_API_FN(void, ecsact_set_system_association_capability)
ECSACT_DEPRECATED("use ecsact_set_system_assoc_capbility instead")
( //
ecsact_system_like_id,
ecsact_component_like_id,
Expand All @@ -423,10 +425,11 @@ ECSACT_DEPRECATED("use ecsact_set_system_assoc_capbility instead")
ecsact_system_capability
);

/**
* @deprecated use ecsact_set_system_assoc_capbility with ECSACT_SYS_CAP_NONE
* instead
*/
ECSACT_DYNAMIC_API_FN(void, ecsact_unset_system_association_capability)
ECSACT_DEPRECATED(
"use ecsact_set_system_assoc_capbility with ECSACT_SYS_CAP_NONE instead"
)
( //
ecsact_system_like_id,
ecsact_component_like_id,
Expand Down
16 changes: 12 additions & 4 deletions ecsact/runtime/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,19 @@ ECSACT_META_API_FN(void, ecsact_meta_system_assoc_capabilities)
int32_t* out_capabilities_count
);

/**
* @deprecated use ecsact_meta_system_assoc_* fns instead
*/
ECSACT_META_API_FN(int32_t, ecsact_meta_system_association_fields_count)
ECSACT_DEPRECATED("use ecsact_meta_system_assoc_* fns instead")
( //
ecsact_system_like_id system_id,
ecsact_component_like_id component_id
);

/**
* @deprecated use ecsact_meta_system_assoc_* fns instead
*/
ECSACT_META_API_FN(void, ecsact_meta_system_association_fields)
ECSACT_DEPRECATED("use ecsact_meta_system_assoc_* fns instead")
( //
ecsact_system_like_id system_id,
ecsact_component_like_id component_id,
Expand All @@ -345,16 +349,20 @@ ECSACT_DEPRECATED("use ecsact_meta_system_assoc_* fns instead")
int32_t* out_fields_count
);

/**
* @deprecated use ecsact_meta_system_assoc_* fns instead
*/
ECSACT_META_API_FN(int32_t, ecsact_meta_system_association_capabilities_count)
ECSACT_DEPRECATED("use ecsact_meta_system_assoc_* fns instead")
( //
ecsact_system_like_id system_id,
ecsact_component_like_id component_id,
ecsact_field_id field_id
);

/**
* @deprecated use ecsact_meta_system_assoc_* fns instead
*/
ECSACT_META_API_FN(void, ecsact_meta_system_association_capabilities)
ECSACT_DEPRECATED("use ecsact_meta_system_assoc_* fns instead")
( //
ecsact_system_like_id system_id,
ecsact_component_like_id component_id,
Expand Down

0 comments on commit 64310d2

Please # to comment.