Processor options

Top  Previous  Next

User interface > Translation options > Processor options

 

 

The processor options are part of the translation options and specify the kinds of processing during the translation from Delphi to C#.

 

 

Options_processors

 

 

When Delphi code is translated, normally the source at first is preprocessed to remove parts of the code, which aren't defined. But it is possible too, to disable either the preprocessor or the translator. That can be done by the according buttons in the tool bar. The initial state of these buttons after the options are loaded can be set here.

 

The overwritten System.pas gets always preprocessed, even if the option to do so is disabled.

 

Normally the learning option is enabled. So the variables and types of every interface are remembered, once the interface was parsed and the interface has not to be processed again. However, there are cases, that the definitions are not constant for all common interfaces. A definition of a current file might enable or disable definitions of a common file. So the result of the conditional compilation will change too and finally different types and variables might be declared of the same unit,which is used in different other units. When the learning option is disabled, included units are preprocessed for every new file again and the result will be correct for each file, but the total processing time increases very much.

 

The option Unify notations in "CSharp" sections determines the case sensitivity in  "CSharp"-sections.

 

The option Stop on message directive determine what happens, if a message directive would remain in the pre-processed code.

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content