Stringification of text with commas

Sergey Ivanov icegood1980@gmail.com
Mon Aug 6 17:51:00 GMT 2012


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



More information about the Gcc-help mailing list