|
Flutter iOS Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_FRAMEWORK_HEADERS_FLUTTERMACROS_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_FRAMEWORK_HEADERS_FLUTTERMACROS_H_
8 #if defined(FLUTTER_FRAMEWORK)
10 #define FLUTTER_DARWIN_EXPORT __attribute__((visibility("default")))
12 #else // defined(FLUTTER_SDK)
14 #define FLUTTER_DARWIN_EXPORT
16 #endif // defined(FLUTTER_SDK)
18 #ifndef NS_ASSUME_NONNULL_BEGIN
19 #define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
20 #define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
21 #endif // defined(NS_ASSUME_NONNULL_BEGIN)
30 #define FLUTTER_DEPRECATED(msg) __attribute__((__deprecated__(msg)))
38 #define FLUTTER_UNAVAILABLE(msg) __attribute__((__unavailable__(msg)))
40 #if __has_feature(objc_arc)
41 #define FLUTTER_ASSERT_ARC
42 #define FLUTTER_ASSERT_NOT_ARC #error ARC must be disabled !
44 #define FLUTTER_ASSERT_ARC #error ARC must be enabled !
45 #define FLUTTER_ASSERT_NOT_ARC
48 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_FRAMEWORK_HEADERS_FLUTTERMACROS_H_