commit | author | age
|
e0ec42
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <FBSDKCoreKit/FBSDKSwizzling.h> |
|
10 |
#import <Foundation/Foundation.h> |
|
11 |
|
|
12 |
// Cast to turn things that are not ids into NSMapTable keys |
|
13 |
#define MAPTABLE_ID(x) (__bridge id)((void *)x) |
|
14 |
|
|
15 |
#pragma clang diagnostic push |
|
16 |
#pragma clang diagnostic ignored "-Wstrict-prototypes" |
|
17 |
|
|
18 |
/** |
|
19 |
Internal type exposed to facilitate transition to Swift. |
|
20 |
API Subject to change or removal without warning. Do not use. |
|
21 |
|
|
22 |
@warning INTERNAL - DO NOT USE |
|
23 |
*/ |
|
24 |
typedef void (^_swizzleBlock)(); |
|
25 |
|
|
26 |
#pragma clang diagnostic pop |
|
27 |
|
|
28 |
NS_ASSUME_NONNULL_BEGIN |
|
29 |
|
|
30 |
/** |
|
31 |
Internal type exposed to facilitate transition to Swift. |
|
32 |
API Subject to change or removal without warning. Do not use. |
|
33 |
|
|
34 |
@warning INTERNAL - DO NOT USE |
|
35 |
*/ |
|
36 |
NS_SWIFT_NAME(_Swizzler) |
|
37 |
@interface FBSDKSwizzler : NSObject <FBSDKSwizzling> |
|
38 |
|
|
39 |
+ (void)swizzleSelector:(SEL)aSelector onClass:(Class)aClass withBlock:(_swizzleBlock)block named:(NSString *)aName; |
|
40 |
+ (void)unswizzleSelector:(SEL)aSelector onClass:(Class)aClass named:(NSString *)aName; |
|
41 |
+ (void)printSwizzles; |
|
42 |
|
|
43 |
@end |
|
44 |
|
|
45 |
NS_ASSUME_NONNULL_END |