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

Change syntax __VAR_ARGS__ to __VA_ARGS__ #376

Merged
merged 2 commits into from
Aug 26, 2022
Merged

Change syntax __VAR_ARGS__ to __VA_ARGS__ #376

merged 2 commits into from
Aug 26, 2022

Conversation

yakuni
Copy link
Contributor

@yakuni yakuni commented Aug 24, 2022

According to these 2 links (quora, epics), VA_ARGS should be preferred over VAR_ARGS.

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
Signed-off-by: Yakumo KUNIMOTO <yakumo@yakumos-imac.home>
@fujitatomoya
Copy link
Collaborator

I believe this is a bug, and should be fixed. see https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html

@iuhilnehc-ynos
Copy link
Collaborator

Based on the description that __has_feature only takes a single identifier argument, do we really need to use __VA_ARGS? Can we just update it with

#if defined(__has_feature)
#define my__has_feature __has_feature
#else
#define my__has_feature(x) 0
#endif

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
@iuhilnehc-ynos
Copy link
Collaborator

CI:

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

@fujitatomoya fujitatomoya merged commit c49b41c into ros2:rolling Aug 26, 2022
@fujitatomoya
Copy link
Collaborator

@Mergifyio backport this humble galactic foxy

mergify bot pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
(cherry picked from commit c49b41c)
mergify bot pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
(cherry picked from commit c49b41c)
mergify bot pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
(cherry picked from commit c49b41c)
@mergify
Copy link

mergify bot commented Aug 26, 2022

backport this humble galactic foxy

✅ Backports have been created

fujitatomoya pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
(cherry picked from commit c49b41c)
fujitatomoya pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
(cherry picked from commit c49b41c)
fujitatomoya pushed a commit that referenced this pull request Aug 26, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
(cherry picked from commit c49b41c)
clalancette pushed a commit that referenced this pull request Sep 21, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>
(cherry picked from commit c49b41c)

Co-authored-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
clalancette pushed a commit that referenced this pull request Sep 30, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
(cherry picked from commit c49b41c)

Co-authored-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
fujitatomoya pushed a commit that referenced this pull request Sep 30, 2022
* Change syntax __VAR_ARGS__ to __VA_ARGS__

Signed-off-by: Yakumoo <crater.broker0f@icloud.com>

* Remove __VA_ARGS__

Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
(cherry picked from commit c49b41c)

Co-authored-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com>
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