Conditional compilation with madExcept in cppbuilder
Posted: Wed May 31, 2017 4:47 pm
In Delphi, you can detect whether madExcept is enabled for a project during compilation with:
But, the equivalent in CppBuilder (I am using XE8, 32bit target) does not work. I see no entries in the .cbproj file related to madExcept, and no -D option in the call to bcc32 with madEXcept as an option (which is how I would expect to see this implemented).
In other words, this equivalent code does not work with CppBuilder:
Am I doing something wrong? Is the #ifdef target something different in CppBuilder?
Code: Select all
{$IFDEF madExcept}
...code...
{$ENDIF}
In other words, this equivalent code does not work with CppBuilder:
Code: Select all
#ifdef madExcept
...code...
#endif