From 8e34dccda973d160e583469e3ef289f4b0bf709d Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 27 Jul 2011 10:39:48 +0000 Subject: [PATCH] Deprecate access to the isa pointer. This will become a hard error in future. --- objc/runtime.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objc/runtime.h b/objc/runtime.h index 5a487a0..5205510 100644 --- a/objc/runtime.h +++ b/objc/runtime.h @@ -76,6 +76,9 @@ typedef struct objc_object * Pointer to this object's class. Accessing this directly is STRONGLY * discouraged. You are recommended to use object_getClass() instead. */ +#ifndef __OBJC_RUNTIME_INTERNAL__ + __attribute__((deprecated)) +#endif Class isa; } *id;