Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-03

macros

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas

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

Roland Schäfer
to Marcos Douglas

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

Marcos Douglas wrote 9 lines
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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Marcos Douglas
to Roland Schäfer

2011/3/16 Roland Schäfer :

Show quoted text 11 lines
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.

That is it!
Thanks.

Marcos Douglas