Re: Stringification of text with commas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



#define GLOBAL_str_intermediate(s) #s
#define GLOBAL_str(s) GLOBAL_str_intermediate(s)

GLOBAL_str(A<B,C>)
- error expected 1 argument while passed 2. While want to return "A<B,C>"

2012/8/6 Ian Lance Taylor <iant@xxxxxxxxxx>:
> On Mon, Aug 6, 2012 at 2:32 AM, Sergey Ivanov <icegood1980@xxxxxxxxx> wrote:
>> I'm checkin input of some class name in file. But class name could be
>> template with >1 arguments, say, A<B,C>.
>> How to stringify that in preprocessor?
>
> Give us a code example of what you are trying to do.
>
> Ian



-- 
Kind regards,
Sergey Ivanov


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux