Re: Preprocessor concatenation questions
Re: Preprocessor concatenation questions
- Subject: Re: Preprocessor concatenation questions
- From: Michel Schinz <email@hidden>
- Date: Thu, 14 Dec 2006 14:42:12 +0100
Le 14 déc. 06 à 14:10, leenoori a écrit :
So evidently the concatenation is being performed prior to the
substitution, yielding the error. I can confirm that concatenation
takes place before substitution by doing the following:
#define foo FOO
#define bar BAR
MY_MACRO(foo, bar) /* yields foobar, not FOOBAR */
Any way to work around this and do what I want?
I think the following FAQ entry is what you're looking for:
http://c-faq.com/ansi/stringize.html
Michel.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden