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 2020#import < FLEX-Categories.h>
2121#import < FLEX-ObjectExploring.h>
2222
23+ #import < FLEXMacros.h>
2324#import < FLEXAlert.h>
2425#import < FLEXResources.h>
Original file line number Diff line number Diff line change 99#ifndef FLEXMacros_h
1010#define FLEXMacros_h
1111
12+
1213#define flex_keywordify class NSObject;
1314#define ctor flex_keywordify __attribute__((constructor)) void __flex_ctor_##__LINE__()
1415#define dtor flex_keywordify __attribute__((destructor)) void __flex_dtor_##__LINE__()
1516
17+ #ifndef strongify
18+
1619#define weakify (var ) __weak __typeof(var) __weak__##var = var;
1720
1821#define strongify (var ) \
@@ -21,6 +24,8 @@ _Pragma("clang diagnostic ignored \"-Wshadow\"") \
2124__strong typeof(var) var = __weak__##var; \
2225_Pragma("clang diagnostic pop")
2326
27+ #endif
28+
2429// A macro to check if we are running in a test environment
2530#define FLEX_IS_TESTING () (NSClassFromString(@"XCTest") != nil)
2631
Original file line number Diff line number Diff line change @@ -42,5 +42,6 @@ Pod::Spec.new do |spec|
4242 "Classes/Core/**/*.h" , "Classes/Utility/Runtime/Objc/**/*.h" ,
4343 "Classes/ObjectExplorers/**/*.h" , "Classes/Editing/**/*.h" ,
4444 "Classes/Utility/Categories/*.h" , "Classes/Utility/FLEXAlert.h" ,
45+ "Classes/Utility/FLEXMacros.h" ,
4546 "Classes/Utility/FLEXResources.h" ]
4647end
You can’t perform that action at this time.
0 commit comments