]> git.saurik.com Git - apple/objc4.git/blobdiff - test/MRCBase.h
objc4-756.2.tar.gz
[apple/objc4.git] / test / MRCBase.h
diff --git a/test/MRCBase.h b/test/MRCBase.h
new file mode 100644 (file)
index 0000000..050f43f
--- /dev/null
@@ -0,0 +1,28 @@
+//
+//  MRCBase.h
+//  TestARCLayouts
+//
+//  Created by Patrick Beard on 3/8/11.
+//  Copyright 2011 __MyCompanyName__. All rights reserved.
+//
+
+#import <Foundation/NSObject.h>
+
+// YES if MRC compiler supports ARC-style weak
+extern bool supportsMRCWeak;
+
+#if __LP64__
+#define DOUBLEWORD_ALIGNED __attribute__((aligned(16)))
+#else
+#define DOUBLEWORD_ALIGNED __attribute__((aligned(8)))
+#endif
+
+@interface MRCBase : NSObject
+@property double number;
+@property(retain) id object;
+@property void *pointer;
+@property(weak) __weak id delegate;
+@end
+
+// Call object_copy from MRC.
+extern id __attribute__((ns_returns_retained)) docopy(id obj);