]> git.saurik.com Git - apple/objc4.git/blobdiff - runtime/objc-weak.h
objc4-818.2.tar.gz
[apple/objc4.git] / runtime / objc-weak.h
index 8c5005093f04c8edf7dbbc171f24c53a7790ad10..535fc8845ca3f7d52f202906414a221e1e5fe95a 100644 (file)
@@ -123,9 +123,15 @@ struct weak_table_t {
     uintptr_t max_hash_displacement;
 };
 
+enum WeakRegisterDeallocatingOptions {
+    ReturnNilIfDeallocating,
+    CrashIfDeallocating,
+    DontCheckDeallocating
+};
+
 /// Adds an (object, weak pointer) pair to the weak table.
 id weak_register_no_lock(weak_table_t *weak_table, id referent, 
-                         id *referrer, bool crashIfDeallocating);
+                         id *referrer, WeakRegisterDeallocatingOptions deallocatingOptions);
 
 /// Removes an (object, weak pointer) pair from the weak table.
 void weak_unregister_no_lock(weak_table_t *weak_table, id referent, id *referrer);