mirror of
https://github.com/darlinghq/darling-objc4.git
synced 2024-11-26 21:50:26 +00:00
29 lines
634 B
Objective-C
29 lines
634 B
Objective-C
//
|
|
// 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);
|