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.
> >Software Development / D�veloppement informatique
> >Technical Support / Support technique
> >Laubrass inc.
> >www.laubrass.com
> >[EMAIL PROTECTED]
> >(remove / enlever 'NOSPAM')
>
>
>



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

Reply via email to