File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 20
20
#import < FLEX-Categories.h>
21
21
#import < FLEX-ObjectExploring.h>
22
22
23
+ #import < FLEXMacros.h>
23
24
#import < FLEXAlert.h>
24
25
#import < FLEXResources.h>
Original file line number Diff line number Diff line change 9
9
#ifndef FLEXMacros_h
10
10
#define FLEXMacros_h
11
11
12
+
12
13
#define flex_keywordify class NSObject;
13
14
#define ctor flex_keywordify __attribute__((constructor)) void __flex_ctor_##__LINE__()
14
15
#define dtor flex_keywordify __attribute__((destructor)) void __flex_dtor_##__LINE__()
15
16
17
+ #ifndef strongify
18
+
16
19
#define weakify (var ) __weak __typeof(var) __weak__##var = var;
17
20
18
21
#define strongify (var ) \
@@ -21,6 +24,8 @@ _Pragma("clang diagnostic ignored \"-Wshadow\"") \
21
24
__strong typeof(var) var = __weak__##var; \
22
25
_Pragma("clang diagnostic pop")
23
26
27
+ #endif
28
+
24
29
// A macro to check if we are running in a test environment
25
30
#define FLEX_IS_TESTING () (NSClassFromString(@"XCTest") != nil)
26
31
Original file line number Diff line number Diff line change @@ -42,5 +42,6 @@ Pod::Spec.new do |spec|
42
42
"Classes/Core/**/*.h" , "Classes/Utility/Runtime/Objc/**/*.h" ,
43
43
"Classes/ObjectExplorers/**/*.h" , "Classes/Editing/**/*.h" ,
44
44
"Classes/Utility/Categories/*.h" , "Classes/Utility/FLEXAlert.h" ,
45
+ "Classes/Utility/FLEXMacros.h" ,
45
46
"Classes/Utility/FLEXResources.h" ]
46
47
end
You can’t perform that action at this time.
0 commit comments