2
我希望我的結構有可可對象時,GC設置爲需要:是否有條件語句在禁用GC編譯時排除代碼?
struct {
int pod;
#ifdef GC_REQUIRED
NSString *cocoa;
#endif
};
我希望我的結構有可可對象時,GC設置爲需要:是否有條件語句在禁用GC編譯時排除代碼?
struct {
int pod;
#ifdef GC_REQUIRED
NSString *cocoa;
#endif
};
當垃圾收集啓用__OBJC_GC__定義,所以你可以檢查這樣的:
struct {
int pod;
#ifdef __OBJC_GC__
NSString *cocoa;
#endif
};