$NODEFINE

Top  Previous  Next

Pretranslated C++ code > Preparing Delphi code > Delphi directives to support C++Builder > $NODEFINE

The NODEFINE directive prevents the specified symbol from being included in the C++ header file, while allowing some information to be output to the OBJ file.

Such symbols are expected in special files for C++Builder. For example for C++Builder there is a file "System.Types.h" where the types TSize, TPoint and, TRect are defined in C++ manner. In System.Types.pas these types are marked with NODEFINE.

 

For other target compilers it is recommended to disable the NODEFINE option. Types like the just mentioned TSize, TPoint and, TRect remain then in the translated files.

 

 

Syntax:        

 

{$NODEFINE identifier}

 

Example:

 

type

          Temperature = type single;

          {$NODEFINE Temperature}

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content