[Lazarus] embed git version info

Graeme Geldenhuys graeme at geldenhuys.co.uk
Thu Mar 28 16:06:43 CET 2013


On 2013-03-28 12:00, Xiangrong Fang wrote:
> WriteLn('COMPILED: ' + {$I %DATE%});
> 
> i.e. the $I above returned a string without trying to parse it.


It just returns a string.... string + string = string. Hence the
Writeln() statements works. As I said in another reply. The compiler has
some special cases regarding %xxx% format, and for everything else it
returns an environment variable as a string.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list