[Next] [Prev] [Up] [Top]

10.0 Constants

Use the predefined NULL, but not TRUE, FALSE (GL)


Applications have access to the define for NULL, TRUE, and FALSE. TRUE and FALSE are provided for backward compatibility only.

All new code will use the bool keyword to designate boolean values. Because compilers may not yet support this, there will be an appropriate #define in the interim.

All new code will use the new keywords of true and false. Because compilers may not support this yet, there will be an appropriate #define in the interim.

#define bool boolean // Unix

#define true TRUE // Unix

#define false FALSE // Unix

#define bool BOOL // PC

#define true TRUE // PC

#define false FALSE // PC


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.