75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
[self release];
@throw e;
}
return self;
}
- (instancetype)initWithObject: (id)firstObject
arguments: (va_list)arguments
{
self = [super init];
@try {
_set = [[OFMutableSet alloc] initWithObject: firstObject
arguments: arguments];
} @catch (id e) {
|
|
<
|
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
[self release];
@throw e;
}
return self;
}
- (instancetype)initWithObject: (id)firstObject arguments: (va_list)arguments
{
self = [super init];
@try {
_set = [[OFMutableSet alloc] initWithObject: firstObject
arguments: arguments];
} @catch (id e) {
|
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
state->mutationsPtr = &_mutations;
return ret;
}
@end
@implementation TestsAppDelegate (OFSetTests)
- (void)setTestsWithClass: (Class)setClass
mutableClass: (Class)mutableSetClass
{
void *pool = objc_autoreleasePoolPush();
OFSet *set1, *set2;
OFMutableSet *mutableSet;
bool ok;
size_t i;
|
|
<
|
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
|
state->mutationsPtr = &_mutations;
return ret;
}
@end
@implementation TestsAppDelegate (OFSetTests)
- (void)setTestsWithClass: (Class)setClass mutableClass: (Class)mutableSetClass
{
void *pool = objc_autoreleasePoolPush();
OFSet *set1, *set2;
OFMutableSet *mutableSet;
bool ok;
size_t i;
|