[fpc-devel] Macro Processing

Martin fpc at mfriebe.de
Fri May 13 17:41:32 CEST 2011


On 13/05/2011 15:19, Hans-Peter Diettrich wrote:
>
> Replacement of $IFs. (Around DebugLn...)

That one is solved already, with existing macros.
rtl\inc\lnfodwrf.pp



{$MACRO ON}
//{$DEFINE DEBUG_DWARF_PARSER}
{$ifdef DEBUG_DWARF_PARSER}
   {$define DEBUG_WRITELN := WriteLn}
{$else}
   {$define DEBUG_WRITELN := //}
{$endif}


and then
     DEBUG_WRITELN('Skipping directory : ', s);






More information about the fpc-devel mailing list