質問

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

役に立ちましたか?

解決

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

#if __OBJC__ && __cplusplus
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top