Skip to content
This repository was archived by the owner on Dec 27, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Aspects.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ typedef NS_OPTIONS(int, AspectBlockFlags) {
} *AspectBlockRef;

@interface AspectInfo : NSObject <AspectInfo>
- (id)initWithInstance:(__unsafe_unretained id)instance invocation:(NSInvocation *)invocation;
@property (nonatomic, unsafe_unretained, readonly) id instance;
- (id)initWithInstance:(__weak id)instance invocation:(NSInvocation *)invocation;
@property (nonatomic, weak, readonly) id instance;
@property (nonatomic, strong, readonly) NSArray *arguments;
@property (nonatomic, strong, readonly) NSInvocation *originalInvocation;
@end
Expand Down Expand Up @@ -924,7 +924,7 @@ @implementation AspectInfo

@synthesize arguments = _arguments;

- (id)initWithInstance:(__unsafe_unretained id)instance invocation:(NSInvocation *)invocation {
- (id)initWithInstance:(__weak id)instance invocation:(NSInvocation *)invocation {
NSCParameterAssert(instance);
NSCParameterAssert(invocation);
if (self = [super init]) {
Expand Down