[fpc-devel] Does FPC optimize unused parameters ?

Martin lazarus at mfriebe.de
Wed Aug 8 17:13:06 CEST 2012

On 08/08/2012 15:55, Jonas Maebe wrote:
> It's possible to do that in a more compact way with a macro (the 
> following is used in a couple of places in the RTL):
> {$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 
But it needs to be declared in each unit (or in an include).
It doesn't simple come via using a unit.

More information about the fpc-devel mailing list