Sign in Join

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

Mailing lists / fpc-devel / 2019-10

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.

Alfred

Hello,

Would it be possible to add a macro definition (in trunk) to indicate that attributes are supported ?

E.g. FPC_HAS_CUSTOMATTRIBUTES

Thanks.

Jonas Maebe
to Alfred
Alfred wrote
Would it be possible to add a macro definition (in trunk) to indicate that attributes are supported ? E.g. FPC_HAS_CUSTOMATTRIBUTES

Normally we don't do that, unless it's required for bootstrapping. You should use a compiler version check instead.

E.g.
{$if FPC_FULLVERSION >= 30301}
{ attributes are supported; if not, the user has to update their trunk to a newer revision. Older trunk versions are never supported. } {$endif}

Jonas