[fpc-pascal] $IFDEF with multiple symbols?

Jonas Maebe jonas at freepascal.org
Thu Mar 2 20:42:19 CET 2017


On 02/03/17 20:39, Bo Berglund wrote:
> Can I use this to make a conditional compilation?
>
> {$IFDEF charlie, oscar}
>   main,
> {$ENDIF}
>
> Where I want main to be included if one or both of charlie and oscar
> are defined symbols.
> So in effect the condition triggering main would be charlie OR oscar..

{$if defined(charlie) or defined(oscar)}
main,
{$endif}


Jonas



More information about the fpc-pascal mailing list