[fpc-pascal] FPC_HAS_FEATURE_SUPPORT

Vasil fantomaspda at ya.ru
Wed Oct 22 00:50:28 CEST 2008


Hello, Mattias

Friday, October 17, 2008, 10:57:37 PM, you wrote:

> 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




More information about the fpc-pascal mailing list