On 18/04/18 12:15, wkitt...@windstream.net wrote:
On 04/17/2018 11:06 PM, James Richters wrote:> I have a whole section of
diagnostic writeln's in a program, and it's tedious to comment them all
out/in as needed. I'm curious if doing something like
what's wrong with traditional IFDEF?? use
l@lists.freepascal.org>
Datum: 18.04.2018 05:06
Předmět: [fpc-pascal] Using constants instead of comments
I have a whole section of diagnostic writeln's in a program, and it's tedious
to comment them all out/in as needed. I'm curious if doing something like
Const
diagnosticdet
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:
James Richters schrieb am Mi., 18. Apr.
2018, 05:00:
> I have a whole section of diagnostic writeln's in a program, and it's
> tedious to comment them all out/in as needed. I'm curious if doing
> something like
>
> Const
>diagnosticdetail=false;
>
> If
On Tue, Apr 17, 2018 at 10:06 PM, James Richters
wrote:
> I have a whole section of diagnostic writeln's in a program, and it's tedious
> to comment them all out/in as needed. I'm curious if doing something like
>
> Const
>diagnosticdetail=false;
>
> If
I have a whole section of diagnostic writeln's in a program, and it's tedious
to comment them all out/in as needed. I'm curious if doing something like
Const
diagnosticdetail=false;
If diagnosticdetail then Writeln('diagnostic info');
Is the same as
// Writeln('diagnostic info');
And