In CodeWarrior, you can use prefix files, separate ones for the debug and
release targets. The release prefix file (e.g. <ReleaseBuild.h>) would have
#define OVLOGMSG (void(0))
while the debug build version <DebugBuild.h> would have
#define OVLOGMSG OVLogger
Put the appropriate prefix file in the C/C++ Language Prefix File in the project
settings for the appropriate target. This will toggle the correct #define for
each target.
-- jkl
----- Original Message -----
From: "George Aslanis" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 9:42 AM
Subject: CW7: Howto NOP a function w/ variable args?
> Hello fellow coders,
>
> I have a message trace function OVLogger(Char* format,...) which only want
> compiled in debug mode. I was trying to emulate how VC++ preprocessed the
> ASSERT macro or something like....
>
> #ifdef DEBUGMODE
> #define OVLOGMSG OVLogger
> #else
> #define OVMSGLOG (void(0))
> #endif
>
> I know!!!I know!!!Obviously this is not correct. Its just an example of
> what I am looking for. I inherited (was dumped on) several projects with
> lots of room for improvement, but not the luxury of rewrite. Any
> suggestions?
>
> Thanks...
> --
> George Aslanis
> [EMAIL PROTECTED]
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/