In the olden days[tm] there was a project for maintaining a Delphiversions.inc file which created human readable conditional defines from the VERxx conditional defines of the Delphi compilers. Since it seems to have vanished from the face of the Internet[tm] ..

In the olden days[tm] there was a project for maintaining a Delphiversions.inc file which created human readable conditional defines from the VERxx conditional defines of the Delphi compilers. Since it seems to have vanished from the face of the Internet[tm] ..
http://blog.dummzeuch.de/2014/07/26/delphiversions-inc/

Comments

  1. The disadvantage of this method is that the include file has to be updated for every new version. I prefer the construction {$IF CompilerVersion > 17} for everything after Delphi6, that won't fall back to ancient Delphi modes when used in the latest and greatest release.

    ReplyDelete
  2. Jeroen Wiert Pluimers Now there is one more...

    ReplyDelete
  3. Uwe Raabe at first we had N standards. Now we have N+1.

    ReplyDelete
  4. "For a more comprehensive version of such a file, see jedi.inc from Project JEDI."
    But since JEDI code is MPL it might not be suitable for all cases.

    ReplyDelete
  5. If you ask the JEDI team kindly, they might make an exception. Or maybe even lessen their restrictions.

    ReplyDelete

Post a Comment