[fpc-pascal] How to do conditional compilation with macros

Flávio Etrusco flavio.etrusco at gmail.com
Sun Sep 18 14:02:28 CEST 2011


On Sun, Sep 18, 2011 at 8:35 AM, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Reinier Olislagers said:
>>
>> Have got FPC version 2.7.1 [2011/09/17] for i386 on Windows.
>>
>> What am I doing wrong?
>
> Not reading manuals?  :-)
>
> http://www.freepascal.org/docs-html/prog/progse5.html#x121-1210002.2
>
> so it is FPC_FULLVERSION, not FPCFULLVERSION
>
> from
>
> http://delphi.wikia.com/wiki/FreePascal_detection_and_versioning
>
> a typical usage:
>
> {$if FPC_FULLVERSION> 20204}
>   // means greater than 2.2.4 here
>  {$ifndef}
>

Not wanting to hijack the thread but, why isn't there a way to print
macro values? (There isn't, is it?)

Best regards,
Flávio



More information about the fpc-pascal mailing list