Preprocessor Problems

Dave Brolley brolley@redhat.com
Tue Jan 23 15:51:00 GMT 2001


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



More information about the Gcc-bugs mailing list