This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Preprocessor Problems


Neil Booth wrote:

> Dave Brolley wrote:-
> 
>> Generally, this kind of misuse is an attempt to delay the pre-expansion 
>> of a macro argument.
> 
> 
> Ah yes, thanks for the reminder.  I suspect that is the original reason.
> 
> If you want to be rid of the warning, the library will have to change
> to do something portable.  Dave had some suggestions; another
> possibility is maybe to introduce another level of indirection and to
> paste with a library-supplied empty argument (from within the extra
> level of indirection).

Unfortunately, empty arguments are not portable, nor is pasting with 
one, since the ## operator applied to a parameter pastes the first or 
last token in the argument associated with that parameter, not the 
parameter itself.

Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]