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

Preprocessor macros that are strings


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

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


  • Follow-Ups:
    • Re: Preprocessor macros that are strings
      • From: Jonathan Taylor <email@hidden>
  • Prev by Date: is it possible to determine from a static archive file on disk which c++ compiler/linker flags were used to build it?
  • Next by Date: Re: Preprocessor macros that are strings
  • Previous by thread: is it possible to determine from a static archive file on disk which c++ compiler/linker flags were used to build it?
  • Next by thread: Re: Preprocessor macros that are strings
  • Index(es):
    • Date
    • Thread