[Lazarus] embed git version info

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Mar 29 10:27:30 CET 2013


Alexander Klenin wrote:
> On Thu, Mar 28, 2013 at 9:04 PM, Graeme Geldenhuys
> <graeme at geldenhuys.co.uk> wrote:
>> On 2013-03-28 11:52, Xiangrong Fang wrote:
>>>> That should work :)
>>> That does not work.
>>
>> Indeed, I just tested it (which I didn't before).
> 
> This problem is relatively frequent.
> See
> http://bugs.freepascal.org/view.php?id=15560
> http://bugs.freepascal.org/view.php?id=21848
> for a solution (which, unfortunately, is still not applied).

 >> AConst = {$INCLUDESTRINGFILE filename.inc};

As an alternative hack which avoids the creation of a new directive, 
would it be possible to do

AStringConst = {$INCLUDE 'filename.inc'};

or for that matter

AnIntegerConst = {$INCLUDE $filename.inc};

i.e. the directive specifies quoting style or radix prefix?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list