[fpc-devel] Does FPC optimize unused parameters ?

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 8 17:25:14 CEST 2012


Martin wrote on Wed, 08 Aug 2012:

> On 08/08/2012 15:55, Jonas Maebe wrote:
>> {$macro on}
>> {$ifdef debugmsg}
>> {$define CallSendDebug:=SendDebug}
>> {$else}
>> {$define CallSendDebug:=//}
>> {$endif}
>>
>> CallSendDebug('|');
>
> Yes I have seen that, and even the macro for continues lines (if params wrap)
> But it needs to be declared in each unit (or in an include).

The alternative has to be declared on each debug line...


Jonas



More information about the fpc-devel mailing list