NSObjCRuntime.h 737 B

123456789101112131415161718192021222324252627282930313233
  1. /* NSObjCRuntime.h
  2. Copyright (c) 1994-2012, Apple Inc. All rights reserved.
  3. */
  4. #ifndef _OBJC_NSOBJCRUNTIME_H_
  5. #define _OBJC_NSOBJCRUNTIME_H_
  6. #include <TargetConditionals.h>
  7. #include <objc/objc.h>
  8. #if __LP64__ || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64
  9. typedef long NSInteger;
  10. typedef unsigned long NSUInteger;
  11. #else
  12. typedef int NSInteger;
  13. typedef unsigned int NSUInteger;
  14. #endif
  15. #define NSIntegerMax LONG_MAX
  16. #define NSIntegerMin LONG_MIN
  17. #define NSUIntegerMax ULONG_MAX
  18. #define NSINTEGER_DEFINED 1
  19. #ifndef NS_DESIGNATED_INITIALIZER
  20. #if __has_attribute(objc_designated_initializer)
  21. #define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  22. #else
  23. #define NS_DESIGNATED_INITIALIZER
  24. #endif
  25. #endif
  26. #endif