What I've always done is to have that block in code like

#ifdef RELEASE
{ ... code ... }
#endif

and then, in the build configuration of either the project or target, I select 
the Release configuration and add the pre processor macro "RELEASE". I forget 
the setting name exactley, but it's along the lines of "other preprocessor 
macros" but it's pretty easy to find.

There may well be a better way to do this, but this approach has worked fine so 
far.
-Andy
________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Carter R. Harrison 
[EMAIL PROTECTED]
Sent: Friday, July 11, 2008 8:01 AM
To: cocoa-dev list
Subject: #define and #ifdef statements for different build configs

I have an app that uses different frameworks and method calls based
upon the currently selected build configuration.

How can I easily setup an #ifdef statement that will only execute if
I've chosen the "Release" build configuraiton?

Thanks in advance.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/andy.klepack%40microsoft.com

This email sent to [EMAIL PROTECTED]
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to