Is it possible to use #ifdef macro in a if condition like this?
if(Something() || SomethingElse() #ifdef __TEST__ || SomethingTest()#endif )
{
// Code Sequence
}
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
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments