-
Notifications
You must be signed in to change notification settings - Fork 557
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
Don't pass type as named macro parameter #157
Comments
The body of the |
@jmarshall Indeed, it is not so common to write anonymous structs by hand again and again, and even a macro expanding to it would evade this. However, as it stands, |
There's a further issue. |
Instead of :
do :
C macros are parsed in a very literal way, with no contextual awareness of
{}
, etc. So whilestruct { int x, y; }
is a valid type,kvec_t(type)
will split it into two arguments at the first,
and then complain about too many parameters, whilekvec_t(...)
will paste the entire thing in place of__VA_ARGS__
.The text was updated successfully, but these errors were encountered: