$NODEFINE

Top  Previous  Next

Pretranslated C++ code > Preparing Delphi code > Delphi directives to support CBuilder > $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. However, in Delphi2Cpp there is no difference between this directive and the  EXTERNALSYM direktive. When you use NODEFINE, it is your responsibility to define any necessary types with HPPEMIT. For example:

 

Syntax:        

 

{$NODEFINE identifier}

 

Example:

 

type

          Temperature = type double;

          {$NODEFINE Temperature}

          {$HPPEMIT 'typedef double Temperature'}



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content