MadExcept small enhancement

delphi package - automated exception handling

MadExcept small enhancement

Postby swierzbicki » Thu Jan 05, 2017 7:18 am

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
swierzbicki
 
Posts: 10
Joined: Wed Feb 23, 2005 6:38 pm

Re: MadExcept small enhancement

Postby madshi » Fri Jan 06, 2017 6:21 pm

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?
madshi
Site Admin
 
Posts: 9203
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadExcept small enhancement

Postby swierzbicki » Fri Jan 13, 2017 9:35 am

Hum, I understand...
Well, everything seems to works fine when code is wrapped with "ifdef"
swierzbicki
 
Posts: 10
Joined: Wed Feb 23, 2005 6:38 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 2 guests