Yes, you can use the following:
#if __has_feature(objc_arc)
...
#endif
Even if you’re using the latest version of LLVM, this will only evaluate to true if you’re compiling with the -fobjc-arc option.
Yes, you can use the following:
#if __has_feature(objc_arc)
...
#endif
Even if you’re using the latest version of LLVM, this will only evaluate to true if you’re compiling with the -fobjc-arc option.