POPDefines.h 891 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. Copyright (c) 2014-present, Facebook, Inc.
  3. All rights reserved.
  4. This source code is licensed under the BSD-style license found in the
  5. LICENSE file in the root directory of this source tree. An additional grant
  6. of patent rights can be found in the PATENTS file in the same directory.
  7. */
  8. #ifndef POP_POPDefines_h
  9. #define POP_POPDefines_h
  10. #import <Availability.h>
  11. #ifdef __cplusplus
  12. # define POP_EXTERN_C_BEGIN extern "C" {
  13. # define POP_EXTERN_C_END }
  14. #else
  15. # define POP_EXTERN_C_BEGIN
  16. # define POP_EXTERN_C_END
  17. #endif
  18. #define POP_ARRAY_COUNT(x) sizeof(x) / sizeof(x[0])
  19. #if defined (__cplusplus) && defined (__GNUC__)
  20. # define POP_NOTHROW __attribute__ ((nothrow))
  21. #else
  22. # define POP_NOTHROW
  23. #endif
  24. #if TARGET_OS_MAC
  25. #define SCENEKIT_SDK_AVAILABLE defined(POP_USE_SCENEKIT)
  26. #elif TARGET_OS_IPHONE
  27. #define SCENEKIT_SDK_AVAILABLE defined(POP_USE_SCENEKIT)
  28. #endif
  29. #endif