• 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: identify build style during compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: identify build style during compile?


  • Subject: Re: identify build style during compile?
  • From: Glen Simmons <email@hidden>
  • Date: Fri, 10 Dec 2004 17:34:50 -0600

You can define a macro in the "Other C / C++ Flags" fields thusly:
-DDEBUG	// Notice there's no space between the -D and the macro name
then use it so:
#ifdef DEBUG
...
#endif

Put the above in the Development build style and you are set.

Glen

On 10 Dec, 2004, at 1:57 PM, walterw wrote:

I have a Carbon application that I'm developing in XCode and I'd like to add code that only gets compiled for a development build.

#ifndef DEPLOYMENT_BUILD
	if (internal_state_passes_tests() == false)
		Debugger();	// break into debugger
#endif

Anyone know how?  I've looked at the docs and can't find out how...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
References: 
 >identify build style during compile? (From: walterw <email@hidden>)

  • Prev by Date: Internal Error when building with xcodebuild
  • Next by Date: Re: identify build style during compile?
  • Previous by thread: identify build style during compile?
  • Next by thread: Re: identify build style during compile?
  • Index(es):
    • Date
    • Thread