@@ -171,10 +171,22 @@ # define OF_HAVE_GENERICS # define OF_GENERIC(...) <__VA_ARGS__> #else # define OF_GENERIC(...) #endif + +#if __has_feature(nullability) +# define OF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") +# define OF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") +#else +# define OF_ASSUME_NONNULL_BEGIN +# define OF_ASSUME_NONNULL_END +# define __nonnull +# define __nullable +# define nonnull +# define nullable +#endif #if __has_feature(objc_kindof) # define OF_KINDOF(cls) __kindof cls #else # define OF_KINDOF(cls) id