Is there a way to ask the compiler if ARC is turned on, and then conditionally compile based upon that value? For example, I have a protocol:
@protocol Proto
You should do #if __has_feature(objc_arc) That will expand to 1 in the case of ARC being enabled.
#if __has_feature(objc_arc)
This is from the ARC docs from Clang.