Differences From Artifact [47cf79266e]:
- File
src/runtime/runtime.h
— part of check-in
[0b32d65e0c]
at
2012-08-06 20:27:42
on branch trunk
— Make class_isMetaClass() ARC-compatible.
Also adds a missing OF_RETURNS_INNER_POINTER. (user: js, size: 5394) [annotate] [blame] [check-ins using]
To Artifact [802118dfd1]:
- File src/runtime/runtime.h — part of check-in [c2a3a3e078] at 2012-08-11 11:55:41 on branch trunk — runtime.h: Fix C++. (user: js, size: 5412) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
70 71 72 73 74 75 76 | struct objc_selector { uintptr_t uid; const char *types; }; struct objc_super { id self; | | | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | struct objc_selector { uintptr_t uid; const char *types; }; struct objc_super { id self; Class cls; }; struct objc_method { struct objc_selector sel; IMP imp; }; |
︙ | ︙ | |||
218 219 220 221 222 223 224 | { return class_getName(object_getClass(obj)); } static inline BOOL class_isMetaClass(Class cls_) { | | | 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | { return class_getName(object_getClass(obj)); } static inline BOOL class_isMetaClass(Class cls_) { struct objc_class *cls = (struct objc_class*)cls_; return (cls->info & OBJC_CLASS_INFO_METACLASS); } #undef OBJC_BRIDGE #endif |