boostorg / boostorg/wave

Support "named" variadic macros

Open
#164 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
29
Forks
55
PR merge metrics
No merged PRs in 30d

Description

This piece of code appears in recent Ubuntu distributions, in `/usr/include/linux/stddef.h`:

```c++
#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \
union { \
struct { MEMBERS } ATTRS; \
struct TAG { MEMBERS } ATTRS NAME; \
}
```

The [gcc manual](https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html) notes that names other than `__VA_ARGS__` - in this case, `MEMBERS` - may be used to refer to the variadic arguments "as an extension". Given the ubiquity of this header it may be useful to add support for this extension.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.