Isn't it lot easier to create an include file with all the defines,
and include it everywhere you need it? If you need several sets of
defines, just create higher level symbols that enable/disable those
sets.

Regards!
-Marco


2008/1/30, Graeme Geldenhuys <[EMAIL PROTECTED]>:
> On 29/01/2008, Giuliano Colla <[EMAIL PROTECTED]> wrote:
> > So my question is still open. There's a way to make the IDE/compiler
> > aware of the change of conditionals? I'm the only one with this requirement?
>
> I have also noticed that issue, mostly with my IFDEF DEBUG lines. I
> used to use application wide defines passing in -d<whatever>.  This
> caused lots of problems, like you described. I now instead use defines
> per unit. Below the compiler mode (top of unit) I place a new line
> {$Define DEBUG} to enable debuging per unit. If I want to disable such
> debugging, comment that line as follows:  {.$Define DEBUG}
>
> Obviously this works for me, because that's the only IFDEF's I have in
> fpGUI.  Others usage may vary. My 2c worth.
>
>
> Regards,
>   - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
>
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to