If I understood your question correctly, you could use conditional defines,
e.g.:

#ifdef DEBUG
    // conditional code goes here, for example...
    MsgBox(debugMsg);
#endif

Then just add

#define DEBUG

at the start of your program to compile the debug version or take it out to
compile the release version.

----- Original Message -----
From: "Jun-Kiat Lam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 07, 2000 5:27 PM
Subject: Re: conditional compilation


> In CodeWarrior you would need to use separate targets for debug and
release
> builds, instead of debug flags ala makefiles. Create a new target (select
> from the Project menu), clone the existing target and you can set the new
> target to have its own settings, optimization levels, etc. etc. for
> debugging purposes. If necessary, you can also have different sources.
>
> Rgds,
> Jun-Kiat Lam
> Metrowerks Technical Support
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 30, 1999 8:18 PM
> Subject: conditional compilation
>
>
> > How do I  add conditional compliation flags to code warrior. I know how
> > to do it in the makefile: -DDEBUG. How do i do this in CW.
> >
>
>
>

Reply via email to