You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
932 B
49 lines
932 B
10 years ago
|
/*
|
||
6 years ago
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
9 years ago
|
*
|
||
7 years ago
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
9 years ago
|
*/
|
||
10 years ago
|
|
||
|
#import <Foundation/NSObject.h>
|
||
|
#import <Foundation/NSString.h>
|
||
|
|
||
8 years ago
|
@interface CSelf : NSObject {
|
||
9 years ago
|
int x;
|
||
8 years ago
|
CSelf* _currentCompositionState;
|
||
10 years ago
|
}
|
||
9 years ago
|
@property(nonatomic, copy, readonly) NSString* JSON;
|
||
10 years ago
|
|
||
|
@end
|
||
|
|
||
8 years ago
|
@implementation CSelf
|
||
10 years ago
|
|
||
|
- (id)init {
|
||
9 years ago
|
self = [super init];
|
||
|
self->x = 10;
|
||
|
return self;
|
||
10 years ago
|
}
|
||
|
|
||
9 years ago
|
- (void)captureManagerSessionDidStart {
|
||
8 years ago
|
__weak CSelf* weakSelf = self;
|
||
|
CSelf* strongSelf = weakSelf;
|
||
9 years ago
|
int x = strongSelf->x;
|
||
10 years ago
|
}
|
||
|
|
||
9 years ago
|
- (int)test {
|
||
|
if (_currentCompositionState != nil) {
|
||
|
}
|
||
|
return _currentCompositionState->x;
|
||
10 years ago
|
}
|
||
|
|
||
|
- (BOOL)isEqual:(id)object {
|
||
9 years ago
|
if (object == self)
|
||
|
return YES;
|
||
|
if (![object isKindOfClass:[self class]])
|
||
|
return NO;
|
||
8 years ago
|
CSelf* other = (CSelf*)object;
|
||
9 years ago
|
return ([_JSON isEqualToString:other->_JSON]);
|
||
10 years ago
|
}
|
||
|
|
||
|
@end
|