MRCBase.h 634 B

12345678910111213141516171819202122232425262728
  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. #import <Foundation/NSObject.h>
  9. // YES if MRC compiler supports ARC-style weak
  10. extern bool supportsMRCWeak;
  11. #if __LP64__
  12. #define DOUBLEWORD_ALIGNED __attribute__((aligned(16)))
  13. #else
  14. #define DOUBLEWORD_ALIGNED __attribute__((aligned(8)))
  15. #endif
  16. @interface MRCBase : NSObject
  17. @property double number;
  18. @property(retain) id object;
  19. @property void *pointer;
  20. @property(weak) __weak id delegate;
  21. @end
  22. // Call object_copy from MRC.
  23. extern id __attribute__((ns_returns_retained)) docopy(id obj);