[Lazarus] Get LCL revision or version via ifdef
Marcos Douglas
md at delfire.net
Tue Oct 4 14:00:37 CEST 2011
On Tue, Oct 4, 2011 at 7:32 AM, silvioprog <silvioprog at gmail.com> wrote:
> 2011/10/2 Marcos Douglas <md at delfire.net>:
>>
>> Sorry, I understood.
>>
>> The LCLVersion unit contains constants, see:
>> const
>> lcl_major = 0;
>> lcl_minor = 9;
>> lcl_release = 31;
>> lcl_patch = 0;
>> lcl_fullversion = ((lcl_major * 100 + lcl_minor) * 100 +
>> lcl_release) * 100 + lcl_patch;
>> lcl_version = '0.9.31';
>>
>> So, just use them.
>>
>> See http://www.lazarus.freepascal.org/index.php?topic=7453.0
>>
>> Marcos Douglas
>
> I don't found the solution in the link above. :/ If I understand it,
> the solution would be to use macros?
The solution is use constants above.
I don't see using macros here.
Marcos Douglas
More information about the Lazarus
mailing list