[fpc-pascal] $IFDEF with multiple symbols?

Bo Berglund bo.berglund at gmail.com
Thu Mar 2 20:39:34 CET 2017

Can I use this to make a conditional compilation?

{$IFDEF charlie, oscar}

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 not then how else should I include main in the charlie or oscar
case but not if both are undefined?

The problem comes from making some units shared between different

Bo Berglund
Developer in Sweden

More information about the fpc-pascal mailing list