Il 18/04/2018 05:06, James Richters ha scritto:
is there a better way to optionally exclude diagnostic information entirely from the compiled program?
Did you consider to replace your Writeln with a DiagWrite (or whatever name you prefer),
and have a DiagWrite such as: DiagWrite: Procedure(aMessage: string); inline; begin if diagnosticdetail then Writeln(aMessage); end; This should do the job, and reduce your typing. Giuliano _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal