Domanda

I am well aware of the #if __OBJC__ macro, but I was wondering if there was an equivalent thing for ObjC++?

È stato utile?

Soluzione

The macro for C++ is __cplusplus, to check for both Objective-C and C++ use

#if __OBJC__ && __cplusplus
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top