[fpc-pascal] Using constants instead of comments
Giuliano Colla
giuliano.colla at fastwebnet.it
Wed Apr 18 12:42:44 CEST 2018
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
More information about the fpc-pascal
mailing list