You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
762 B

6 years ago
  1. //
  2. // CLSAttributes.h
  3. // Crashlytics
  4. //
  5. // Copyright (c) 2015 Crashlytics, Inc. All rights reserved.
  6. //
  7. #pragma once
  8. #define CLS_DEPRECATED(x) __attribute__ ((deprecated(x)))
  9. #if !__has_feature(nullability)
  10. #define nonnull
  11. #define nullable
  12. #define _Nullable
  13. #define _Nonnull
  14. #endif
  15. #ifndef NS_ASSUME_NONNULL_BEGIN
  16. #define NS_ASSUME_NONNULL_BEGIN
  17. #endif
  18. #ifndef NS_ASSUME_NONNULL_END
  19. #define NS_ASSUME_NONNULL_END
  20. #endif
  21. #if __has_feature(objc_generics)
  22. #define CLS_GENERIC_NSARRAY(type) NSArray<type>
  23. #define CLS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary<key_type, object_key>
  24. #else
  25. #define CLS_GENERIC_NSARRAY(type) NSArray
  26. #define CLS_GENERIC_NSDICTIONARY(key_type,object_key) NSDictionary
  27. #endif