I highly recommend the Delphi Inspiration Pascal Preprocessor (DIPP)
This can do several things with the source file in addition to deleting conditional definitions, including “pasting” the included files and deleting comments (all, of course, very customizable and controlled by the parameters provided by the processor).
Functional conditional definitions are especially useful since you can simply remove all such conditional expressions or provide the DEFINE set that you want to apply. DIPP then emits the source file, which reflects how it will appear to the compiler with these DEFINED characters, but without the conditional directives themselves.
So, in your case, you just defined the characters that correspond to your "baseline" version of Delphi.
source
share