Automatically delete Delphi ifdef compiler instructions

I’m currently working on the’inheritance’ code, which has (randomly scattered) a lot of conditional compiler instructions based on the Delphi version, back to Delphi 2. From now on, all development Will use Delphi 2009 or the future. Is there a tool or plug-in in Delphi 2009 that will automatically delete the compiler conditional code segment based on the specified “minimum” version?
I strongly recommend Delphi Inspiration Pascal Preprocessor (DIPP)

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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3194 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.