Bellow is a part of our prefix file. You can identify there both
debug-dependent variable and a logical variable.

Jan Slodicka

#undef DEBUG
#if __option(a6frames)
 #define DEBUG
#endif

#ifndef DEBUG
 #undef ErrFatalDisplayIf
 #define ErrFatalDisplayIf(condition, msg)
#endif

// Support for Sony HR and HR+
#define SONY_CLIE



----- Original Message -----
From: "Regis St-Gelais" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, August 21, 2003 6:00 PM
Subject: Re: distinguish between Release and Debug at compile time


> In that case just use a define:
>
> #define LOGGING
> .
> .
> .
> #ifdef LOGGING
> ..
> ..
> #else
> ..
> ..
> #endif
>
> you just have to comment out the define and recompile if you don't want
the
> logging stuff in you code
>
> --
> Regis St-Gelais, P. Eng. / ing.
> Software Development / D�veloppement informatique
> Technical Support / Support technique
> Laubrass inc.
> www.laubrass.com
> [EMAIL PROTECTED]
> (remove / enlever 'NOSPAM')
> --
> "Eric Potter" <[EMAIL PROTECTED]> a �crit dans le message de
> news:[EMAIL PROTECTED]
> >
> > Thanks for the tip, but I need something independant of the target
> > name. I am trying to toggle some logging functionality.  I may want to
> > have logging in a release build or leave it out. So the control is
> > independant of release or debug.
> >
> >
> > On Thu, 21 Aug 2003 09:54:02 -0400, "Regis St-Gelais"
> > <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >you can use
> > >
> > >#if __ide_target("Name of your target")
> > >.....
> > >#else
> > >.....
> > >#endif
> > >
> > >
> > >--
> > >Regis St-Gelais, P. Eng. / ing.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to