[fpc-pascal] macros

Roland Schäfer roland.schaefer at fu-berlin.de
Wed Mar 16 14:47:27 CET 2011


Hi,

INCLUDEs like these will insert the appropriate strings into your code:

{$INCLUDE %DATE%}
{$INCLUDE %TIME%}
{$INCLUDE %FPCTARGETCPU%}
{$INCLUDE %FPCTARGETOS%}
{$INCLUDE %FPCVERSION%}

There are more... AFAIK it's documented in the Programmer's Manual.

Cheers
Roland

On 3/16/2011 2:18 PM, Marcos Douglas wrote:
> Hi,
> Some day I saw an example using "macros" on the code.
> I want to put the compiler version in an "about form"... I remember
> something like %fpcversion%... %date%...whatever.
> 
> Marcos Douglas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list