Custom attributes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom attributes

Free Pascal - General mailing list
Hi!

FPC compiler has a define when custom attributes are present? 

Something like FPC_HAS_CONSTREF, to say when constref is available...

--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com

_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Custom attributes

Jonas Maebe-3
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
_______________________________________________
fpc-pascal maillist  -  [hidden email]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal