문제

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