MadExcept small enhancement

delphi package - automated exception handling
Post Reply
swierzbicki
Posts: 10
Joined: Wed Feb 23, 2005 6:38 pm

MadExcept small enhancement

Post by swierzbicki »

Hello,

MadExcept is automatically adding its units to .dpr file.
This is fine when working on Windows environment. I'm getting an error when working on mobile devices as these units doesn't exists.

Could you wrap them with this define ?

Code: Select all

{$IFDEF WINDOWS}
  madExcept,
  madLinkDisAsm,
  madListHardware,
  madListProcesses,
  madListModules,
  {$ENDIF} 
Thank you
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadExcept small enhancement

Post by madshi »

It's not that easy, unfortunately, because madExcept still supports Delphi 4, and all the older Delphi versions don't understand "ifdef windows", only the newest Delphi versions do. Now madExcept does know which IDE version it's currently running in. However, madExcept does not know if that's the only one that is used to work with any given source code file. It's possible that some users use the same dpr files with different Delphi versions. So I can't simply add "ifdef windows" because that would break older Delphi versions.

Does everything work if you manually add these ifdefs yourself?
swierzbicki
Posts: 10
Joined: Wed Feb 23, 2005 6:38 pm

Re: MadExcept small enhancement

Post by swierzbicki »

Hum, I understand...
Well, everything seems to works fine when code is wrapped with "ifdef"
Post Reply