[fpc-pascal] Custom attributes

Jonas Maebe jonas at freepascal.org
Wed May 20 20:37:06 CEST 2020


On 20/05/2020 15:55, Fabio Luis Girardi via fpc-pascal wrote:
> FPC compiler has a define when custom attributes are present? 
> 
> Something like FPC_HAS_CONSTREF, to say when constref is available...

In general, such defines are only added if they are required for
bootstrapping. For the same reason they are also removed again after a
while, so you really should not use them.

The only supported way to check for the presence of certain features is
by performing a version check (FPC_FULLVERSION > XXXX).


Jonas


More information about the fpc-pascal mailing list