• 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: Excluding some code when building with development style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Excluding some code when building with development style


  • Subject: Re: Excluding some code when building with development style
  • From: "David Chilton" <email@hidden>
  • Date: Tue, 11 May 2004 11:27:25 -0400

you could use:
#ifdef DEPLOYMENT
code
#endif

and add -DDEPLOYMENT to the "Other C Flags" build settings for just the deployment style.

David

-----Original Message-----
From: Peter Borg <email@hidden>
To: email@hidden
Date: Tue, 11 May 2004 16:39:43 +0200
Subject: Excluding some code when building with development style

Hello!

I want to exclude some code when I'm developing my program and only
include it when I build it with Deployment Style. The problem is that
the code in question gives me a warning when I compile (it is an
undocumented method) and it gets to be annoying after a while but I
can't really turn the warnings off as they usually need them. I guess
what I'm looking for is something like:

#if DEPLOYMENT_STYLE_BUILD
compile this code
#endif

But I can't find the syntax for it and was wondering if any of you know
of a good way to do this?

Regards,

Peter
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: XCode newbie: Help with plugins and linking
  • Next by Date: Re: Excluding some code when building with development style
  • Previous by thread: Re: Excluding some code when building with development style
  • Next by thread: setting a java main class option on build & run
  • Index(es):
    • Date
    • Thread