File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515#import < zlib.h>
1616
1717BOOL FLEXConstructorsShouldRun () {
18- static BOOL _FLEXConstructorsShouldRun_storage = YES ;
19-
20- static dispatch_once_t onceToken;
21- dispatch_once (&onceToken, ^{
22- NSString *key = @" FLEX_SKIP_INIT" ;
23- if (getenv (key.UTF8String ) || [NSUserDefaults .standardUserDefaults boolForKey: key]) {
24- _FLEXConstructorsShouldRun_storage = NO ;
25- }
26- });
27-
28- return _FLEXConstructorsShouldRun_storage;
18+ #if FLEX_DISABLE_CTORS
19+ return NO ;
20+ #else
21+ static BOOL _FLEXConstructorsShouldRun_storage = YES ;
22+
23+ static dispatch_once_t onceToken;
24+ dispatch_once (&onceToken, ^{
25+ NSString *key = @" FLEX_SKIP_INIT" ;
26+ if (getenv (key.UTF8String ) || [NSUserDefaults .standardUserDefaults boolForKey: key]) {
27+ _FLEXConstructorsShouldRun_storage = NO ;
28+ }
29+ });
30+
31+ return _FLEXConstructorsShouldRun_storage;
32+ #endif
2933}
3034
3135@implementation FLEXUtility
You can’t perform that action at this time.
0 commit comments