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

__VA_OPT__ should be treated like a parameter #815

Open
ehaas opened this issue Dec 31, 2024 · 0 comments
Open

__VA_OPT__ should be treated like a parameter #815

ehaas opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ehaas
Copy link
Collaborator

ehaas commented Dec 31, 2024

__VA_OPT__ should be stringizable and its parameters should be macro-substituted.

#define FOO BAR
#define M(x, y, ...) #__VA_OPT__(y ## x __VA_ARGS__)
M(a, b, FOO)

Should produce "ba BAR"; currently it errors with error: '#' is not followed by a macro parameter

@ehaas ehaas added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant