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
wrap)
But it needs to be declared in each unit (or in an include).
It doesn't simple come via using a unit.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel