madExcept not adjusting uses clause correctly

delphi package - automated exception handling
Post Reply
sknake
Posts: 10
Joined: Wed May 30, 2007 3:29 pm

madExcept not adjusting uses clause correctly

Post by sknake »

madExcept does not take in to account conditional defines when it adjusts the uses clause for an application.

In the application.pas file i have two sets of uses, one for SQL, one for if SQL is undefined (as follows). madExcept always updates the first uses clause regardless of the defines.


program Application;

{$IFDEF SQL}
uses
LocaleInfo,
madExcept,
madLinkDisAsm,
madListHardware,
madListProcesses,
madListModules,
Forms,
SysUtils,
MainUt in 'MainUt.pas' {MainFm},
<forms..}

{$ENDIF}

{$IFNDEF SQL}
uses
madExcept,
madLinkDisAsm,
madListHardware,
madListProcesses,
madListModules,
Forms,
SysUtils,
<forms..>
{$ENDIF}


{$R *.res}

begin

//Code here....

end.
Post Reply