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: Markus Ruggiero <email@hidden>
- Date: Tue, 11 May 2004 17:52:53 +0200
First of all I think this is very dangerous. Do you really want to
include code in your deployment that you have not used/tested in
development????
Anyway. Go to buildstyles and add -DDEPLOYMENT_STYLE_BUILD to your
compiler options . Then in code you can use simple C makros to test
for it like
#ifdef DEPLOYMENT_STYLE_BUILD
// your code goes here
#endif
I am not currently sitting in front of XCode so do not take my
description literally, but I think you should be able to "translate"
it.
Have fun
---markus--
At 16:39 Uhr +0200 11.5.2004, Peter Borg wrote:
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.
--
Markus Ruggiero
rucotec consulting and technologies email mailto:email@hidden
rucotec GmbH web http://www.rucotec.ch
Steinentorstrasse 8
4051 Basel Mobile +41 (0)79 508 4701
Switzerland Phone/Fax +41 (0)61 271 4990
_______________________________________________
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.