Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

add WString support #29

Merged
merged 9 commits into from
May 2, 2019
Merged

add WString support #29

merged 9 commits into from
May 2, 2019

Conversation

dirk-thomas
Copy link
Member

Connect to ros2/rosidl#352.

While waiting for ros2/rcl_interfaces#58 the patch (without tests) can already be reviewed.

@dirk-thomas dirk-thomas added enhancement New feature or request in review Waiting for review (Kanban column) labels Apr 30, 2019
@dirk-thomas dirk-thomas self-assigned this Apr 30, 2019
@jacobperron jacobperron self-requested a review May 1, 2019 22:26
@@ -344,7 +365,10 @@ if isinstance(type_, AbstractNestedType):
return false;
}
@[ elif isinstance(type_, AbstractWString)]@
@{ assert False, 'TBD'}@
if (!ros_i.data) {
rosidl_generator_c__U16String__init(&ros_i);
Copy link
Member

Choose a reason for hiding this comment

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

We should probably guard against the unlikely case that this call fails (same below). I noticed that the same could be done for regular strings.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the same is true for strings I would rather not do it right now. Maybe we can delay this to a follow up PR?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

@dirk-thomas dirk-thomas requested a review from jacobperron May 1, 2019 23:16
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
Signed-off-by: Dirk Thomas <[email protected]>
@dirk-thomas dirk-thomas merged commit d148741 into master May 2, 2019
@delete-merged-branch delete-merged-branch bot deleted the wstring branch May 2, 2019 18:48
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants