[fpc-devel] Re: Porting FPC to IBM zArch

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Aug 20 13:47:25 CEST 2013


Mark Morgan Lloyd schrieb:

> Apropos Paul's comments of doing a good cross-reference and handling 
> compiler directives, I think the thing that is likely to give real 
> problems is the {$if defined() } form...

I'm not sure whether $if defined() works with ordinary constants. The 
$DEFINE and CONST identifiers most probably reside in different lists.

> const   a= 1;
> 
> var     b: integer;
> 
> begin
> {$if defined(a) }
This should work better:
  {$if a=1 }

DoDi




More information about the fpc-devel mailing list