Am 27.03.2013 23:19, schrieb Graeme Geldenhuys:
On 2013-03-27 17:59, Sven Barth wrote:
const
   cGitRevision = '{$revision.inc}';
This won't work, because the string takes precedance over the directive.
Probably why my original version build script generates the whole line
with identifier.

What about the following...

  const
    cGitRevision = '''' + {$revision.inc} + '''';
That should work :)

Or are expressions not allowed in constant declarations either? Anyway,
I think we gave enough hints for the original poster to find a suitable
solution. I was never pro to spoon-feeding programmers. ;-)
Me neither...

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to