• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preprocessor concatenation questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Preprocessor concatenation questions
      • From: leenoori <email@hidden>
References: 
 >Preprocessor concatenation questions (From: leenoori <email@hidden>)

  • Prev by Date: Preprocessor concatenation questions
  • Next by Date: Re: Preprocessor concatenation questions
  • Previous by thread: Preprocessor concatenation questions
  • Next by thread: Re: Preprocessor concatenation questions
  • Index(es):
    • Date
    • Thread