Hello All,
If SOMEMACRO is "NOT DEFINED" will the above code compile?Qt Code:
//.h class A { Q_OBJECT public: A(){} public slots: #ifdef SOMEMACRO void slotA(); #endif }; //.cpp #ifdef SOMEMACRO void A::slotA() { //.. } #endifTo copy to clipboard, switch view to plain text mode
In my case it doesn't compile. Why?
Is the moc_A.cpp file created before preprocessors being parsed by the compiler?
Thanks
Bookmarks