Sign in Join

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

Mailing lists / fpc-pascal / 2008-10

FPC_HAS_FEATURE_SUPPORT

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Can someone explain the new FPC source layout?
I find out so far:

In rtl/inc/systemh.inc there is

{$ifndef FPC_HAS_FEATURE_SUPPORT}
...
{$define FPC_HAS_FEATURE_CLASSES}
...
{$ENDIF}

Because FPC 2.3.1 defines FPC_HAS_FEATURE_SUPPORT the above is never executed and therefore FPC_HAS_FEATURE_CLASSES is never defined. So for example TObject is never defined.

What defines FPC_HAS_FEATURE_CLASSES and the other features?

Mattias

Vasil
to Mattias Gaertner

Hello, Mattias

you wrote 16 lines
Can someone explain the new FPC source layout? I find out so far: In rtl/inc/systemh.inc there is {$ifndef FPC_HAS_FEATURE_SUPPORT} ... {$define FPC_HAS_FEATURE_CLASSES} ... {$ENDIF} Because FPC 2.3.1 defines FPC_HAS_FEATURE_SUPPORT the above is never executed and therefore FPC_HAS_FEATURE_CLASSES is never defined. So for example TObject is never defined. What defines FPC_HAS_FEATURE_CLASSES and the other features?

Maybe, the explanation can be found in FP documentation. Said, if {$MODE OBJFPC} or {$MODE DELPHI} is defined then the ObjPas unit is loaded automatically right after the System unit. Thus, you do not have to put ObjPas into the uses clause.

Best regards Vasil