Details
-
Suggestion
-
Resolution: Moved
-
P3: Somewhat important
-
4.5.1
-
None
Description
We have the project with definitions in a pro-file
TEMPLATE = app
TARGET = myapp
DEFINES = MY_DEBUG_MESSAGE
And in a program body
#ifdef MY_DEBUG_MESSAGE
#define myDebug(msg, args...) qDebug(msg, ##args)
#else
#define myDebug(msg, args...) qt_noop()
#endif
int main()
{
...
myDebug("As Is");
......
}
Eclipse, will always highlight,
#define myDebug(msg, args...) qt_noop()
As the active code, and will compile as
#define myDebug(msg, args...) qDebug(msg, ##args)
The consequence of it is the fact that Q_XXX defines (which are defined in qt pro files) are not recognized