mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/HockeySDK-iOS git-subtree-mainline: 085acd26c4432939403765234266e3c1be0f3dd9 git-subtree-split: c7d0c7026303253e2ac576c02655691e5d314fe2
36 lines
846 B
C
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 */
|