-
Notifications
You must be signed in to change notification settings - Fork 4
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_ARGS__ broken in g++: badly punctuated parameter list in `#define' #8
Comments
According to "Badly punctuated parameter list in #define" blog post, the problem could be fixed by replacing: #define AllocDosObjectTags(___type, ___tags, ...) \
({_sfdc_vararg _tags[] = { ___tags, __VA_ARGS__ }; AllocDosObjectTagList((___type), (const struct TagItem *) _tags); }) ... with: #define AllocDosObjectTags(___type, ___tags, ARGS...) \
({_sfdc_vararg _tags[] = { ___tags, ##ARGS }; AllocDosObjectTagList((___type), (const struct TagItem *) _tags); }) This could be achieved by modifying function_start in sfdc. |
Another quick fix is to pass EDIT: I could modify -lang-c++ settings with |
@sezero Any opinion on that topic? I'm leaning towards latter option. |
|
Applied your suggested change to my fork as sezero@53b3955 |
Relevant part of inline/dos.h, around line 157:
The text was updated successfully, but these errors were encountered: