• 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 macros that are strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preprocessor macros that are strings


  • Subject: Re: Preprocessor macros that are strings
  • From: Jonathan Taylor <email@hidden>
  • Date: Wed, 27 May 2015 17:29:42 +0100

Sorry for the spam, it’s been a long day and I was editing the wrong target settings. It does indeed work to add under “preprocessor macros”:
MY_MACRO=‘\”myString\”'
which translates to
-DMY_MACRO=\”myString\”

On 27 May 2015, at 17:23, Jonathan Taylor <email@hidden> wrote:

> Google is failing me here: how do I define a preprocessor macro in Xcode that represents a C string. In other words, I want something that will behave equivalently to:
> #define MY_MACRO “myString”
> No combination of escaping and multi-quoting that I have tried prevents this from translating into
> -DMY_MACRO=myString
>
> Can anyone advise?
> Cheers
> Jonny


 _______________________________________________
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


References: 
 >Preprocessor macros that are strings (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Preprocessor macros that are strings
  • Next by Date: Putting tests in same file as code to be tested?
  • Previous by thread: Preprocessor macros that are strings
  • Next by thread: Putting tests in same file as code to be tested?
  • Index(es):
    • Date
    • Thread