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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to