that's what i do. it works great. i'm not really sure what else you'd be
looking for. how else do you want to selectively enable portions of a file
for specific build flavors? i've always used #ifdef on every platform i've
worked on, it's just how C/C++ work.
do you mean you want to exclude specific file from one or more targets?
select the file in the project window, then hit Alt-Enter (or click the
Project Inspector toolbar button or choose Window->Project Inspector). make
sure the Targets tab is selected, and then check/uncheck the desired
targets.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 1999 1:02 PM
Subject: Re: #ifdef debug (or similar)
> Interesting, I use multiple targets but I still need #ifdef's so the code
> can be include/excluded by the target. The extra target just
> allows me to define or not define to include/non include the code.
>
> Am I missing a better way ?
> How can a target alter the code without #ifdef's ?
>
> Ron
>
> <pre>
> In CodeWarrior, you would use Targets instead of #ifdefs. In the Project
> window, select Targets, select Create Targets, Clone an existing Target
and
> then build this new target with debug information and libraries. This new
> target will become the debug version of the target you cloned.
>
> Hope this helps.
>
> Rgds,
> Jun-Kiat Lam
> Metrowerks Technical Support
>
> ----- Original Message -----
> From: Steve Austin <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 20, 1999 2:26 PM
> Subject: #ifdef debug (or similar)
>
>
> > Hi everyone,
> >
> > In CW5, is there a standard way to define code only for debugging?
> Should
> I
> > just do
> >
> > #ifdef debug
> >
> > code...
> >
> > #endif
> >
> > Thanks,
> >
> > Steve
> >
> >
>
>
> </pre>
>
>
>