Swiftgram/submodules/HockeySDK-iOS/Classes/HockeySDKNullability.h
Peter 76e5a7fab6 Add 'submodules/HockeySDK-iOS/' from commit 'c7d0c7026303253e2ac576c02655691e5d314fe2'
git-subtree-dir: submodules/HockeySDK-iOS
git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9
git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
2019-06-11 18:53:14 +01:00

36 lines
846 B
C

//
// HockeyNullability.h
// HockeySDK
//
// Created by Andreas Linde on 12/06/15.
//
//
#ifndef HockeySDK_HockeyNullability_h
#define HockeySDK_HockeyNullability_h
// Define nullability fallback for backwards compatibility
#if !__has_feature(nullability)
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END
#define nullable
#define nonnull
#define null_unspecified
#define null_resettable
#define _Nullable
#define _Nonnull
#define __nullable
#define __nonnull
#define __null_unspecified
#endif
// Fallback for convenience syntax which might not be available in older SDKs
#ifndef NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
#endif
#ifndef NS_ASSUME_NONNULL_END
#define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
#endif
#endif /* HockeySDK_HockeyNullability_h */