]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/objc-runtime-old.h
objc4-818.2.tar.gz
[apple/objc4.git] / runtime / objc-runtime-old.h
index 664cf4ba44c76947f0b7ff9497427d71fca28372..14672106da8ca9ef8ba8c9b76689c0bcfa1d571f 100644 (file)
@@ -205,7 +205,7 @@ struct objc_class : objc_object {
 
     // set and clear must not overlap
     void changeInfo(uint32_t set, uint32_t clear) {
-        assert((set & clear) == 0);
+        ASSERT((set & clear) == 0);
 
         uint32_t oldf, newf;
         do {
@@ -234,20 +234,19 @@ struct objc_class : objc_object {
         return info & CLS_IS_ARC;
     }
 
-    bool hasCustomRR() { 
+    bool hasCustomRR() {
         return true;
     }
-    void setHasCustomRR(bool = false) { }
-    void setHasDefaultRR() { }
-    void printCustomRR(bool) { }
 
-    bool hasCustomAWZ() { 
+    bool hasCustomAWZ() {
         return true;
     }
-    void setHasCustomAWZ(bool = false) { }
-    void setHasDefaultAWZ() { }
-    void printCustomAWZ(bool) { }
 
+    bool forbidsAssociatedObjects() {
+        // Old runtime doesn't support forbidding associated objects.
+        return false;
+    }
+    
     bool instancesHaveAssociatedObjects() {
         return info & CLS_INSTANCES_HAVE_ASSOCIATED_OBJECTS;
     }