$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 of C++Builder, while allowing some information to be output to the OBJ file. For example the types TSize, TPoint and, TRect in System.Types.pas are marked with NODEFINE. In C++Builder these types are defined in System.Types.h.

 

Delphi2C# doesn't output code parts, which are marked with the NODEFINE directive if the according option is enabled. In this case it is your responsibility to define the necessary code yourself, One possibility is to do it with HPPEMIT:

 

Syntax:        

 

{$NODEFINE identifier}

 

Example:

 

type

          Temperature = type double;

          {$NODEFINE Temperature}

          {$HPPEMIT 'typedef double Temperature'}

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content