Re: Use of preprocessor macros
Re: Use of preprocessor macros
- Subject: Re: Use of preprocessor macros
- From: Luke the Hiesterman <email@hidden>
- Date: Tue, 1 Dec 2009 17:04:55 -0800
Don't you mean #ifdef foo rather than #if foo?
Luke
On Dec 1, 2009, at 4:59 PM, Graham Cox wrote:
> Just a quickie.
>
> I'm defining a preprocessor macro in the 'GCC 4.2 - Preprocessing / preprocessor macros' section of my project's build properties, e.g. foo=1. This is set only in the debug version.
>
> But when I try and use it in the source code, as in #if foo ... #endif I get 'foo is not defined'.
>
> What should I be doing? I need to conditionally compile in some code in the debug version and leave it out in the release version.
>
>
> --Graham
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden