1 /* This provides a minimal implementation of the Object root class.
2 * It is split from the definition so that it can be placed
3 * at the end of source files that require it. This reduces
4 * clutter in .s and other internmediate code while debugging.
6 #ifndef _OBJC_OBJECT1_IMPLEMENTATION_H_
7 #define _OBJC_OBJECT1_IMPLEMENTATION_H_
8 #ifdef DO_NEXT_M64_OBJECT_IMPLEMENTATION
19 return object_getClass(self);
23 return [[self alloc] init];
31 return object_dispose(self);
35 return class_createInstance(self, 0);
45 return class_getSuperclass([self class]);
48 - (const char *) name {
49 return class_getName([self class]);
52 -(BOOL)conformsTo:(Protocol *)protocol {
54 for (cls = [self class]; cls; cls = [cls superclass]) {
55 if (class_conformsToProtocol(cls, protocol)) return YES;
61 #endif /* NEEDS_OBJECT_IMPLEMENTATION */
62 #endif /* _OBJC_OBJECT1_IMPLEMENTATION_H_ */