Re: Preprocessor macros that are strings
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