Usually code asserts no other bitness exists besides 64 and 32. Where possible, use capabilities instead of versions checking for greater clearness and portability. Older versions are not supported because they have no $IF clause. We consider language and compiler features implemented in Delphi 7 as a base and track all changes from it. In fact, the files only add one define DCC for Delphi 7. Several ways of implementing conditional defines.Compatible with JVCL defines (only some of them are included).Contains only a few of RTL/VCL changes (feel free to suggest).Supports Delphi 7 (see note below), RAD Studio 2005+, FreePascal.Moreover you don't have to check compiler version where a required feature first appeared, you just check the availability of this feature.Īdditionally, there are files for checking current compiler settings in CompilerOpts.inc, some cross-compiler and cross-platform defines in XPlatformCompat.inc and cross-compiler declarations in XCompiler.*.pas Summary With these files you can write code that is compatible with older Delphi compilers or even other Pascal compilers (FreePascal) by simply enclosing modern/specific constructions with appropriate define. Include files for checking compiler versions and capabilities
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |