2012/3/22 Mark Morgan Lloyd <[email protected]>:
> At that point if there's an ./ide/revision.inc file containing
>
> // Created by Svn2RevisionInc
> const RevisionStr = '35880M';
>
> can it be included into a unit to make it visible at compile time?
You can add "$(LazarusDir)\ide" to the include paths of the project.
Then this works:
{$I revision.inc}
const
revIntroducedNewFeature = '55555';
begin
{$IF (RevisionStr >= revIntroducedNewFeature)}
UseNewFeature;
{$ENDIF}
end;
--
cobines
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus