Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 GC 设置为 required 时,我希望我的结构具有可可对象:
struct { int pod; #ifdef GC_REQUIRED NSString *cocoa; #endif };
启用垃圾收集时,定义了 __OBJC_GC__,因此您可以像这样检查:
struct { int pod; #ifdef __OBJC_GC__ NSString *cocoa; #endif };