Skip to content

Change syntax __VAR_ARGS__ to __VA_ARGS__#376

Merged
fujitatomoya merged 2 commits intoros2:rollingfrom
yakuni:rolling
Aug 26, 2022
Merged

Change syntax __VAR_ARGS__ to __VA_ARGS__#376
fujitatomoya merged 2 commits intoros2:rollingfrom
yakuni:rolling

Conversation

@yakuni
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

mergify Bot commented Aug 26, 2022

backport this humble galactic foxy

✅ Backports have been created

Details

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