Page 1 of 1

MadExcept small enhancement

Posted: Thu Jan 05, 2017 7:18 am
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

Re: MadExcept small enhancement

Posted: Fri Jan 06, 2017 6:21 pm
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?

Re: MadExcept small enhancement

Posted: Fri Jan 13, 2017 9:35 am
by swierzbicki
Hum, I understand...
Well, everything seems to works fine when code is wrapped with "ifdef"