[lazarus] Win32 Installer/Lazarus
Peter Vreman
pfvreman at wins.uva.nl
Wed Jul 21 06:35:12 EDT 1999
> >> 2. Use the macro feature of fpc
> >
> > NOW THIS IDEA I LIKE!
> >
> > Here is what we could do.
> >
> > {$define DEBUGOUT:=debug.write}
> >
> > Then anyplace in the code put code
> >
> > DEBUGOUT ('whatever trace information you want');
> >
> > Then when you don't want debug you just need to redefine the macro to be
> >
> > {$define DEBUGOUT:=//}
> >
> > The the code becomes
> >
> > // ('whatever trace information you want');
> >
> > What does everyone think about this???
> >
>
> Excellent idea. I forgot all about the macro features of the compiler. Sheesh,
> that provides a lot of power and flexibility. This is really good. This has my
> vote.
But macro's doesn't support parameters.
Peter
More information about the Lazarus
mailing list