This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Stringification of text with commas


nice!

2012/8/6 Jonathan Wakely <jwakely.gcc@gmail.com>:
> On 6 August 2012 16:46, Sergey Ivanov wrote:
>> #define GLOBAL_str_intermediate(s) #s
>> #define GLOBAL_str(s) GLOBAL_str_intermediate(s)
>>
>> GLOBAL_str(A<B,C>)
>
> Just enclose it in parentheses:
>
> GLOBAL_str( (A<B,C>) )



-- 
Kind regards,
Sergey Ivanov


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