Thanks again, John!

I found it out myself (-Dname)... I have read the GCC-documentation, but the
reason I asked was that I was a bit confused (comming from a Pascal-World) that
what I call conditional defines is actually called a Macro :-)

And: I will stop naming my macros with underscores!

-Christian





John Marshall <[EMAIL PROTECTED]> on 03.02.2000 15:53:18

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (bcc: Christian Falch/s/BISTIFT)
Subject:  Re: Conditional Defines



[EMAIL PROTECTED] wrote:
> I have wrapped a few calls to the Dbgxxx-functions with #ifdef __DEBUG__
> /#endif.

(This may not be a good name to encourage people to use in user code.
Names starting with double underscores are reserved for the compiler
implementation, and you run the risk of conflicting with your compiler.)

> Is it possible to tell gcc's preprocessor to use these defines (without
> having to manually edit the code) from the command-line (makefile)?

Of course.  RTFM?

     http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11

    John

--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palm.com/devzone/mailinglists.html








-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to