[fpc-pascal] $IF conditional compilation
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Jul 28 15:29:53 CEST 2009
On 28 Jul 2009, at 14:42, Bee wrote:
> In another unit which uses the above unit, I want to have conditional
> compilation based on the above constant...
>
> {$IF AValue}
> Do something...
> {$ELSE}
> Do something else...
> {$IFEND}
>
> I know it's possible in Delphi. But, is it possible in FPC? Using the
> above construct, I always got an 'Internal error 200501152' message.
> Is it a bug or something?
The internal error is due to the fact that your {$if ...} construct
appears right after your uses clause: http://bugs.freepascal.org/view.php?id=8611
Jonas
More information about the fpc-pascal
mailing list