[Lazarus] Where to define conditionals for FPC

Bo Berglund bo.berglund at gmail.com
Fri May 8 14:07:39 CEST 2020

I know that you can define "custom options" in Lazarus

These can then be used in constructs like this example:

//Code pertaining to LazSerial
//Code pertaining to AsyncPro

But if I do not want to use Lazarus, how do I set the conditionals I
want to use?

Something like:

written directly in a source file could perhaps be used?

But where do I put this so it will apply to the whole application?
And so that Delphi will also read it if I use the source in Delphi...

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list