Re: #ifdef/build style question
Re: #ifdef/build style question
- Subject: Re: #ifdef/build style question
- From: Brian Smith <email@hidden>
- Date: Thu, 6 Jan 2005 13:07:56 -0700
You set the "Preprocessor Macros" setting with your DEBUG_ON as it's
value. The comments on the setting will tell you that it does exactly
what you want.
Brian
On Jan 6, 2005, at 11:26 AM, patrick wrote:
I'd like to have debug code in my application like:
#ifdef DEBUG_ON
NSLog(@"This is a debug message");
#endif
And DEBUG_ON would be defined in my Development build style. I've
added such a setting into the build style, but it would appear that
this is not the same as if I were using "make -DDEBUG_ON ...". Is
there a way to reference these settings in the build styles to control
what gets compiled in?
Thanks,
Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev 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.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden