[Lazarus] Conditional code based on Lazarus/LCL version
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Sep 22 23:48:18 CEST 2016
On Thu, 22 Sep 2016 22:25:23 +0100
Denis Kozlov <dezlov at gmail.com> wrote:
> On 22/09/2016 22:02, Mattias Gaertner wrote:
> > See unit lclversion.
>
> Thanks! Somehow I just couldn't find it.
>
> Is it theoretically possible to implement a compile time define for
> Lazarus version?
You can use it at compile time:
uses lclversion;
{$IF lcl_minor=7}
...
It is just that codetools do not support such constants. The compiler
does.
Mattias
More information about the Lazarus
mailing list