Re: D6/D7 EVIL BUG: $IFDEF stripped from units in the USES clauses of DPR/DPK source files.
From: Cruxy (cruxyATcruxyDOTnet)
Date: 10/01/03
- Next message: DJ: "AVing on Application.Terminate"
- Previous message: Florent Ouchet: "Re: Lost debugging tips"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Sep 2003 23:41:39 -0700
> uses
> {$IFDEF MEMDEBUG}MyHeapUtility{$ENDIF},
> <rest of uses>
This won't work cause if MEMDEBUG is not defined, the uses clause
begins with a ','.
Normally you could do everything with IFDEF as you know from C without
restriction(I work on SW using this since Pascal V?).
AFAIK the parser reduces everything not defined and put in everything
defined - irrelevant if the result is correct or not. And irrelevant if
.dpk, .dpr or .pas.
regards
- Next message: DJ: "AVing on Application.Terminate"
- Previous message: Florent Ouchet: "Re: Lost debugging tips"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|