Layne Lund wrote:

Well, MWERKS should be defined as I am using CW. I have option(bool) turned on, so the #define true and #define false should never be 'defined'.

I am using c++, so the enum false, true should be skipped (even if MWERKS is not defined).

From what I can tell, the intrinsic c++ values for true and false should not be tampered with (atleast not by this code).


----- Original Message -----
From: Brad Figler <[EMAIL PROTECTED]>
Date: Monday, September 22, 2003 1:15 pm
Subject: Re: bool support in CW.


Ben,

The only thing I could find came from palmtypes.h

// Include the following typedefs if types.h wasn't read.
#if  __DEFINE_TYPES_
        #ifdef __MWERKS__
        #if !__option(bool)
                #ifndef true
                        #define true                    1
                #endif
                #ifndef false
                        #define false                   0
                #endif
        #endif
        #else
     #ifndef __cplusplus
                #ifndef true
                        enum {false, true};
                #endif
         #endif
        #endif
#endif /* __TYPES__ */

I imagine this works as expected.


How do you expect the above to work, exactly? The #defines or maybe the enum could be causing the error/warning that sparked your question.

Layne





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

Reply via email to