Re: C preprocessor macro
Re: C preprocessor macro
- Subject: Re: C preprocessor macro
- From: Tom Saxton <email@hidden>
- Date: Sun, 11 Sep 2005 14:34:12 -0700
My solution to this problem was to have Rez define a preprocessor
symbol that I could use to hide C stuff. It seems better to mark the
Rez compile than to infer it by the lack of being something normal.
Do it manually in the "Preprocessor Defines" secton of the Rez build
settings, or put this in an xcconfig file:
REZ_PREPROCESSOR_DEFINITIONS = "__REZ_COMPILER__"
--
Tom Saxton
email@hidden
On 9/10/05, Marc Poirier <email@hidden> wrote:
> This is a bit off-topic since it is not Xcode-specific, but I'm
> having trouble finding an answer so I thought I'd try here...
>
> Is there a standard macro defined by C preprocessors that says,
> "Hello, I am a C preprocessor"? Kinda like there is __cplusplus for C
> ++ preprocessors, I'm wondering if there is something like that for
> plain C. I have a header file that is included by some C files, some
> C++ files, and resource files, so I need to block out C-specific code
> so that Rez doesn't choke on it. Currently what I've found (and what
> I'm checking for) is __STDC_HOSTED__ which is defined (albeit
> sometimes as 0) by all C preprocessors that I've tried, though from
> what I've read about it, may not be defined by some C preprocessors
> in lower-than-C99 mode? So I'm wondering if this is a good choice or
> if there's a better and fully reliable macro to check.
>
> thanks,
> Marc
> _______________________________________________
> 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
>
_______________________________________________
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