PINCacheMacros.h 756 B

123456789101112131415161718192021222324
  1. //
  2. // PINCacheMacros.h
  3. // PINCache
  4. //
  5. // Created by Adlai Holler on 1/31/17.
  6. // Copyright © 2017 Pinterest. All rights reserved.
  7. //
  8. #ifndef PIN_SUBCLASSING_RESTRICTED
  9. #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
  10. #define PIN_SUBCLASSING_RESTRICTED __attribute__((objc_subclassing_restricted))
  11. #else
  12. #define PIN_SUBCLASSING_RESTRICTED
  13. #endif // #if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
  14. #endif // #ifndef PIN_SUBCLASSING_RESTRICTED
  15. #ifndef PIN_NOESCAPE
  16. #if defined(__has_attribute) && __has_attribute(noescape)
  17. #define PIN_NOESCAPE __attribute__((noescape))
  18. #else
  19. #define PIN_NOESCAPE
  20. #endif // #if defined(__has_attribute) && __has_attribute(noescape)
  21. #endif // #ifndef PIN_NOESCAPE