Team Fortress 2 Source Code as on 22/4/2020
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.

90 lines
2.0 KiB

  1. /*
  2. File: CGError.h
  3. Contains: CoreGraphics error codes
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 2000-2001 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef CGERROR_H_
  11. #define CGERROR_H_
  12. #ifndef __CGBASE__
  13. #include <CGBase.h>
  14. #endif
  15. #if PRAGMA_ONCE
  16. #pragma once
  17. #endif
  18. #if PRAGMA_IMPORT
  19. #pragma import on
  20. #endif
  21. #if PRAGMA_ENUM_ALWAYSINT
  22. #if defined(__fourbyteints__) && !__fourbyteints__
  23. #define __CGERROR__RESTORE_TWOBYTEINTS
  24. #pragma fourbyteints on
  25. #endif
  26. #pragma enumsalwaysint on
  27. #elif PRAGMA_ENUM_OPTIONS
  28. #pragma option enum=int
  29. #elif PRAGMA_ENUM_PACK
  30. #if __option(pack_enums)
  31. #define __CGERROR__RESTORE_PACKED_ENUMS
  32. #pragma options(!pack_enums)
  33. #endif
  34. #endif
  35. /* Types used for error and error handler */
  36. enum CGError {
  37. kCGErrorSuccess = 0,
  38. kCGErrorFirst = 1000,
  39. kCGErrorFailure = kCGErrorFirst,
  40. kCGErrorIllegalArgument = 1001,
  41. kCGErrorInvalidConnection = 1002,
  42. kCGErrorInvalidContext = 1003,
  43. kCGErrorCannotComplete = 1004,
  44. kCGErrorNameTooLong = 1005,
  45. kCGErrorNotImplemented = 1006,
  46. kCGErrorRangeCheck = 1007,
  47. kCGErrorTypeCheck = 1008,
  48. kCGErrorNoCurrentPoint = 1009,
  49. kCGErrorInvalidOperation = 1010,
  50. kCGErrorNoneAvailable = 1011,
  51. kCGErrorLast = kCGErrorNoneAvailable
  52. };
  53. typedef enum CGError CGError;
  54. #if PRAGMA_ENUM_ALWAYSINT
  55. #pragma enumsalwaysint reset
  56. #ifdef __CGERROR__RESTORE_TWOBYTEINTS
  57. #pragma fourbyteints off
  58. #endif
  59. #elif PRAGMA_ENUM_OPTIONS
  60. #pragma option enum=reset
  61. #elif defined(__CGERROR__RESTORE_PACKED_ENUMS)
  62. #pragma options(pack_enums)
  63. #endif
  64. #ifdef PRAGMA_IMPORT_OFF
  65. #pragma import off
  66. #elif PRAGMA_IMPORT
  67. #pragma import reset
  68. #endif
  69. #endif /* CGERROR_H_ */