Sign in Join

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

Mailing lists / fpc-pascal / 2020-05

Custom attributes

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Jonas Maebe
to Fabio Luis Girardi
Fabio Luis Girardi 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

Reply by email