[fpc-pascal] $IF conditional compilation
Bee
bee.ography at gmail.com
Tue Jul 28 14:42:33 CEST 2009
Hi all,
Say I had a constant declared in a unit...
const
AValue = true;
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?
FYI I'm using FPC v.2.2.5 on Mac. TIA.
--
-Bee-
...making buzzes at http://twitter.com/beezing
...writing stories at http://beeography.wordpress.com
More information about the fpc-pascal
mailing list