Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Suggestion about metamacro_argcount #56

Closed
stanislaw opened this issue Nov 27, 2013 · 5 comments
Closed

Suggestion about metamacro_argcount #56

stanislaw opened this issue Nov 27, 2013 · 5 comments

Comments

@stanislaw
Copy link

Hello.

Please, consider basing metamacro_argcount on the solution proposed here so it could properly count zero-arguments presence.

I see the next comment there states "This uses a nonstandard GCC extension." but I can't evaluate myself if it is really a no-no for Objective-C world so I decided to write you about this solution to know if it can be included into libextobjc.

Thanks.

@stanislaw
Copy link
Author

@jspahrsummers
Copy link
Owner

I strongly dislike the zero-argument extension. What's the use case for this?

@stanislaw
Copy link
Author

Actually, nothing serious.

Just interesting, why strongly? I have it working fine in Xcode - I know it is by no means an argument, but what are really the limitations that are expected from using it?

@jspahrsummers
Copy link
Owner

Mostly I just think zero-argument macros are kind of a hack, but libextobjc has other such hacks, I suppose.

Perhaps a bigger issue is that metamacros.h actually comes from libextc, which is strictly C99 compliant. This change wouldn't be backportable. :\

@stanislaw
Copy link
Author

OK, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants