Am 24.09.2014 um 02:59 schrieb Роман:
> As we all know, C preprocessor allows function-like macros, including ones
> with empty expansion.
> They can be very convenient for things that you'll want to disable depending
> on conditional defines,
> such as logging or assertions.
>
> #ifdef DEBUG
>
and I am with 2.6.4
thanks!
Em 24.09.2014 07:28, Mattias
Gaertner escreveu:
> On Wed, 24 Sep 2014 07:12:44 -0300
> Philippe
wrote:
>
>> -OoREMOVEEMPTYPROCS interesting!
why is it not available in Lazarus through "all options" window (in
project options / customizable options)?
>
>
On Wed, 24 Sep 2014 07:12:44 -0300
Philippe wrote:
>
>
> -OoREMOVEEMPTYPROCS
>
> interesting!
>
> why is it not available in
> Lazarus through "all options" window (in project options / customizable
> options)?
It is available under Compiler Options / Other / All Options
You need fp
-OoREMOVEEMPTYPROCS
interesting!
why is it not available in
Lazarus through "all options" window (in project options / customizable
options)?
(not sure about the names ... I have "opções personalizadas"
and "todas as opções"!)
Philippe
Em 24.09.2014 06:17, Sven Barth
escreveu:
> Am 2
On Wed, Sep 24, 2014 at 12:17 PM, Sven Barth
wrote:
> Am 24.09.2014 10:15 schrieb "Tomas Hajny" :
> > However, the trunk compiler offers also another option, although it may
> or
> > may not be usable for you. In particular, take the following:
> >
> > -
> > var
> > S2: string;
> >
> > p
Am 24.09.2014 10:15 schrieb "Tomas Hajny" :
> However, the trunk compiler offers also another option, although it may or
> may not be usable for you. In particular, take the following:
>
> -
> var
> S2: string;
>
> procedure Log (S: string);
> begin
> {$IFDEF TEST}
> WriteLn (S);
> {$E
On Wed, September 24, 2014 02:59, Роман wrote:
.
.
> {$macro on}
> {$ifdef DEBUG}
> {$define Log := ActualLog}
> {$else}
> {$define Log := ;//}
> {$endif}
>
> if A then
>Log('will work until followed by ELSE at all or any statements on the
> same line (because of ; and //, respectiv