Quantcast
Channel: IFDEF in if condition - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Jared Dykstra for IFDEF in if condition

Yes, just add some newlines. The #ifdef and #endif need to be on their own lines:if(Something() || SomethingElse() #ifdef __TEST__ || SomethingTest() #endif ){ // Code Sequence}

View Article



IFDEF in if condition

Is it possible to use #ifdef macro in a if condition like this?if(Something() || SomethingElse() #ifdef __TEST__ || SomethingTest()#endif ){// Code Sequence}

View Article
Browsing all 2 articles
Browse latest View live




Latest Images