I am trying to prevent showing certain error messages in Release (as stated in my question Errors showing in Qt application - how to not display them in Release).
I am working on an application in Qt... on Windows, Mac OS X and Linux.
For Windows checking for symbols is quite simple:
#if defined (Q_OS_WIN32) && !defined (NDEBUG)
But checking for NDEBUG on Linux, with the project built using qmake, the NDEBUG is not recognized...
So I could create a constant in the pro file:
unix:CONFIG(release):DEFINES += NO_RELEASE_ERRORS
This worked for both Linux and Windows. But when I tried on mac, switching between debug and release configurations both seemed to give me the defined constant...
I have installed Qt 4.8 on the MAC but its installation may not have debug symbols...
How can I find on MAC a DEBUG and RELEASE type of symbol that can trigger or not display of errors ?