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 s
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 something like this...
{$IFDEF DEBUG}
writeln ('bl
Hi,
Why not define?
{$DEFINE DEBUG}
{$IFDEF DEBUG} Writeln('diagnostic info'); {$ENDIF}
V.
__
Od: "James Richters"
Komu: "'FPC-Pascal users discussions'"
Datum: 18.04.2018 05:06
Předm
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: Procedu
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 diagnosticdetail then Writeln('diagnos
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 diagnosticdetail then Writeln('diagno
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 t