System.GetCompilerVersion

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCompilerVersion: Word;

C++

extern DELPHI_PACKAGE Word __fastcall GetCompilerVersion(void);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

Returns the CompilerVersion constant of the compiled system unit. This constant can be used for the expression in the conditional compilation. GetCompilerVersion includes two bytes:

  • Upper byte: It holds the Compiler major version.
  • Lower byte: It holds the Compiler minor version. Usually, the minor version is ZERO. For example, for RAD Studio 12, GetCompilerVersion would return $2400.


See Also