In addition to deleting the condition definition In addition, this can also perform many operations using the source file, including “inlining” the included file and deleting comments (of course, all of these can be highly configured and controlled through the options provided to the processor).
< p>The condition definition function is particularly useful because you can simply delete all these conditions, or provide a set of DEFINEs you wish to apply. Then DIPP will send out a source file that reflects how the compiler looks to use these symbols DEFINED, But there is no conditional instruction itself.
So, in your case, you only need to define symbols that fit your “baseline” Delphi version.
I am currently working on the’inheritance’ code, which has (randomly scattered) a bunch of conditional compiler instructions based on the Delphi version, back to Delphi 2. From now on, all development will be in Delphi 2009 or in the future. Delphi 2009 Is there a tool or plug-in in which will automatically delete the compiler conditional code segment based on the specified “minimum” version?
I highly recommend Delphi Inspiration Pascal Preprocessor (DIPP)
In addition to deleting condition definitions, this can also perform many operations using source files , Including the “inlining” of the included files and deleting comments (of course, all of these can be highly configured and controlled through the options provided to the processor).
The condition definition function is particularly useful because you can simply Delete all these conditions, or provide a set of DEFINEs you wish to apply. Then DIPP will send out a source file that reflects how the compiler looks to use these symbols DEFINED, but without the conditional directives themselves.
So, in your case, you only need to define symbols that fit your “baseline” Delphi version.