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

remove static function rcl_ret_from_rcutils_ret(). #1122

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

fujitatomoya
Copy link
Collaborator

refactoring to get rid of redundancy for code maintenance.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@iuhilnehc-ynos can you take a look at this?

rcl/src/rcl/logging_rosout.c Show resolved Hide resolved
rcl/src/rcl/logging_rosout.c Show resolved Hide resolved
@iuhilnehc-ynos
Copy link
Collaborator

To reduce the duplication seems good to me. I think that using the common API might be the correct way, which was the reason I used rcl_convert_rcutils_ret_to_rcl_ret instead of rcl_ret_from_rcutils_ret in #1115.

To set the error message explictly if needed is a better way because we would like to keep the same consistent behavior in rcl.

Copy link
Collaborator

@iuhilnehc-ynos iuhilnehc-ynos left a comment

Choose a reason for hiding this comment

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

LGTM with green CI.

@fujitatomoya
Copy link
Collaborator Author

CI:

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

@fujitatomoya fujitatomoya merged commit 13c0cbb into rolling Nov 30, 2023
2 of 3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fujitatomoya/remove-rcl_ret_from_rcutils_ret branch November 30, 2023 03:59
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.

None yet

2 participants