Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a RCUTILS_DEPRECATED macro to enable platform specific deprecation #234

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

tfoote
Copy link
Contributor

@tfoote tfoote commented Apr 10, 2020

This provides an equivalent to ROS_DEPRECATED

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

This provides an equivalent to ROS_DEPRECATED

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One typo, otherwise LGTM

@@ -92,6 +92,13 @@ extern "C"
__attribute__ ((format(printf, format_string_index, first_to_check_index)))
#endif // !defined _WIN32 || defined __CYGWIN__

/// Macro to declare deprecation in the platform appropriate mannor.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Macro to declare deprecation in the platform appropriate mannor.
/// Macro to declare deprecation in the platform appropriate manner.

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I think that both Windows and non-windows have a way to add a deprecation message:

It would be great to add a RCUTILS_DEPRECATED_WITH_MSG macro too.

Signed-off-by: Tully Foote <tfoote@osrfoundation.org>
@tfoote tfoote merged commit dd9b618 into master Apr 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the tfoote/add_deprecated branch April 10, 2020 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants