]> git.saurik.com Git - apple/objc4.git/blob - test/MRCBase.h
objc4-756.2.tar.gz
[apple/objc4.git] / test / MRCBase.h
1 //
2 // MRCBase.h
3 // TestARCLayouts
4 //
5 // Created by Patrick Beard on 3/8/11.
6 // Copyright 2011 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/NSObject.h>
10
11 // YES if MRC compiler supports ARC-style weak
12 extern bool supportsMRCWeak;
13
14 #if __LP64__
15 #define DOUBLEWORD_ALIGNED __attribute__((aligned(16)))
16 #else
17 #define DOUBLEWORD_ALIGNED __attribute__((aligned(8)))
18 #endif
19
20 @interface MRCBase : NSObject
21 @property double number;
22 @property(retain) id object;
23 @property void *pointer;
24 @property(weak) __weak id delegate;
25 @end
26
27 // Call object_copy from MRC.
28 extern id __attribute__((ns_returns_retained)) docopy(id obj);