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


#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@google.com>:
> On Mon, Aug 6, 2012 at 2:32 AM, Sergey Ivanov <icegood1980@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]