>= Alexandria 11.3 的编译时检测

Hea*_*are 1 delphi delphi-11-alexandria

您如何(编译时)检测 Alexandria 11.2 和 11.3 之间的差异(或者更确切地说,您如何检测您处于 11.3 或更高版本?)

两者的 CompilerVersion 和 RTLVersion 值为 35。

Uwe*_*abe 6

有常量RTLVersion111,RTLVersion112RTLVersion113根据您正在编译的版本进行声明。这些可以这样检测:

{$IF declared(RTLVersion113)}
  ...
{$IFEND}
Run Code Online (Sandbox Code Playgroud)