Stringification of text with commas

Jonathan Wakely jwakely.gcc@gmail.com
Mon Aug 6 16:24:00 GMT 2012


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>) )



More information about the Gcc-help mailing list