• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: #ifdef/build style question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >#ifdef/build style question (From: patrick <email@hidden>)

  • Prev by Date: Re: Close a alert sheet programatically
  • Next by Date: Re: #ifdef/build style question
  • Previous by thread: #ifdef/build style question
  • Next by thread: Re: #ifdef/build style question
  • Index(es):
    • Date
    • Thread