Adopt objc direct attributes where possible.
This commit is contained in:
66 files changed
+223
-131
No files matched your search
+12
-1
@@ -6,7 +6,18 @@
|
||||
// Copyright (c) 2013 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MP42MediaFormat.h"
|
||||
#import <MP42Foundation/MP42MediaFormat.h>
|
||||
|
||||
// Direct method and property calls increases performance and reduces binary size.
|
||||
#if defined(__IPHONE_14_0) || defined(__MAC_10_16) || defined(__TVOS_14_0) || defined(__WATCHOS_7_0)
|
||||
#define MP42_OBJC_DIRECT_MEMBERS __attribute__((objc_direct_members))
|
||||
#define MP42_OBJC_DIRECT __attribute__((objc_direct))
|
||||
#define MP42_DIRECT ,direct
|
||||
#else
|
||||
#define MP42_OBJC_DIRECT_MEMBERS
|
||||
#define MP42_OBJC_DIRECT
|
||||
#define MP42_DIRECT
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
||||
Reference in new issue
Block a user