dimanche 20 août 2017

C++ else statement only if Macro is define

I'm trying to do an if/else statement. But I want to wrap the else statement in an ifdef macro test.

if (check1)
{
...
}
#ifdef MACRO
else 
{...}
#endif

is this allowed?

Aucun commentaire:

Enregistrer un commentaire