• 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: Info.plist preprocessor macro expansion, space between tokens
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist preprocessor macro expansion, space between tokens


  • Subject: Re: Info.plist preprocessor macro expansion, space between tokens
  • From: Greg Guerin <email@hidden>
  • Date: Sun, 30 Apr 2006 18:19:54 -0700

Alex Sheh wrote:

>Is there anyway to get the Info.plist preprocessor NOT to add whitespace
>between tokens during macro expansion?
>
>Info.plist prefix header
>#define MAJOR 1
>#define MINOR 2
>#define MICRO 3
>
>Info.plist contents
><key> CFBundleShortVersionString <\key>
><string> MAJOR.MINOR.MICRO <\string>

<string>MAJOR##.##MINOR##.##MICRO</string> ?

This assumes the plist preprocessor is using standard C notations.  "Token
pasting" or "concatenation" is standard C preprocessor notation.  E.g.:

<http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/cpp/Concatenation.html>


Also, you have backslashes in your end-tags that need to be /'s.

  -- GG


 _______________________________________________
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

  • Prev by Date: Re: Configuring XCode to use remote subversion repository
  • Previous by thread: Re: Info.plist preprocessor macro expansion, space between tokens
  • Next by thread: Strange inconsistence...
  • Index(es):
    • Date
    • Thread