Re: Excluding some code when building with development style
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.