RAD Studio
ContentsIndex
PreviousUpNext
Keywords And Protected Words In Macros

It is legal but ill-advised to use C++ keywords as macro identifiers:

#define int long    /* legal but probably catastrophic */
#define INT long    /* legal and possibly useful */

The following predefined global identifiers cannot appear immediately following a #define or #undef directive:

  • __DATE__ __FILE__ __LINE__
  • __STDC__ __TIME__

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!