home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / include / gl / glerror.h.z / glerror.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  4.1 KB  |  145 lines

  1. #ifndef    __GL_GLERROR_H__
  2. #define    __GL_GLERROR_H__
  3. /**************************************************************************
  4.  *                                      *
  5.  *          Copyright (C) 1984, Silicon Graphics, Inc.          *
  6.  *                                      *
  7.  *  These coded instructions, statements, and computer programs  contain  *
  8.  *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
  9.  *  are protected by Federal copyright law.  They  may  not be disclosed  *
  10.  *  to  third  parties  or copied or duplicated in any form, in whole or  *
  11.  *  in part, without the prior written consent of Silicon Graphics, Inc.  *
  12.  *                                      *
  13.  **************************************************************************/
  14.  
  15. /* severities -- the rest are gl.h, but shouldn't be */
  16. #define ABORT            5    /* call abort() after printing message*/
  17.  
  18.  
  19. /* error codes */
  20. #define ERR_SINGMATRIX        1
  21. #define ERR_OUTMEM        2
  22. #define ERR_NEGSIDES        3
  23. #define ERR_BADWINDOW        4
  24. #define ERR_NOOPENOBJ        5
  25. #define ERR_NOFONTRAM        6
  26. #define ERR_FOV            7
  27. #define ERR_BASISID        8
  28. #define ERR_NEGINDEX        9
  29. #define ERR_NOCLIPPERS        10
  30. #define ERR_STRINGBUG        11
  31. #define ERR_NOCURVBASIS        12
  32. #define ERR_BADCURVID        13
  33. #define ERR_NOPTCHBASIS        14
  34. #define ERR_FEEDPICK        15
  35. #define ERR_INPICK        16
  36. #define ERR_NOTINPICK        17
  37. #define ERR_ZEROPICK        18
  38. #define ERR_FONTBUG        19
  39. #define ERR_INRGB        20
  40. #define ERR_NOTINRGBMODE    21
  41. #define ERR_BADINDEX        22
  42. #define ERR_BADVALUATOR        23
  43. #define ERR_BADBUTTON        24
  44. #define ERR_NOTINDBMODE        25
  45. #define ERR_BADINDEXBUG        26
  46. #define ERR_ZEROVIEWPORT    27
  47. #define ERR_DIALBUG        28
  48. #define ERR_MOUSEBUG        29
  49. #define ERR_RETRACEBUG        30
  50. #define ERR_MAXRETRACE        31
  51. #define ERR_NOSUCHTAG        32
  52. #define ERR_DELBUG        33
  53. #define ERR_DELTAG        34
  54. #define ERR_NEGTAG        35
  55. #define ERR_TAGEXISTS        36
  56. #define ERR_OFFTOOBIG        37
  57. #define ERR_ILLEGALID        38
  58. #define ERR_GECONVERT        39
  59. #define ERR_BADAXIS        40
  60. #define ERR_BADDEVICE        42
  61. #define ERR_PATCURVES        44
  62. #define ERR_PATPREC        45
  63. #define ERR_CURVPREC        46
  64. #define    ERR_PUSHATTR        47
  65. #define    ERR_POPATTR        48
  66. #define    ERR_PUSHMATRIX        49
  67. #define    ERR_POPMATRIX        50
  68. #define    ERR_PUSHVIEWPORT    51
  69. #define    ERR_POPVIEWPORT        52
  70. #define ERR_SIZEFIXED        53
  71. #define ERR_SETMONITOR        54
  72. #define ERR_CHANGEINDEX0    55
  73. #define ERR_BADPATTERN        56
  74. #define ERR_CURSORNOTFOUND    57
  75. #define ERR_FONTHOLES        58
  76. #define ERR_REPLACE        59
  77. #define ERR_STARTFEED        60
  78. #define ERR_CYCLEMAP        61
  79. #define ERR_TAGINREPLACE    62
  80. #define ERR_TOOFEWPTS        63
  81. #define ERR_UNDEFINEDCHAR    64
  82. #define ERR_BADCURSOR        65
  83. #define ERR_NOTINCOLORMODE    66
  84. #define ERR_UNKNOWNINTRP    67
  85. #define ERR_INFEEDBACK        68
  86. #define ERR_DURINGFEEDBACK    69
  87. #define ERR_DURINGSELECT    70
  88. #define ERR_ARGMISMATCH        71
  89. #define ERR_TOOMANYARGS        72
  90. #define ERR_OBJNOTFOUND        73
  91. #define ERR_MAKEROOMINREPLACEMODE 74
  92. #define ERR_UNABLETOOPEN    75
  93. #define ERR_QUEUINGDEVICE    76
  94. #define ERR_UNQUEUINGDEVICE    77
  95. #define ERR_GETBUTTONERROR    78
  96. #define ERR_GETVALUATORERROR    79
  97. #define ERR_SETVALERROR        80
  98. #define ERR_TIEERROR        81
  99. #define ERR_NOISEERROR        82
  100. #define ERR_ATTACHCURSOR    83
  101. #define ERR_MAPDEVICE        84
  102. #define ERR_WINATTACH        85
  103. #define ERR_NOSUCHWINDOW    86
  104. #define ERR_CLOSEDLASTWINDOW    87
  105. #define ERR_LINESTYLENOTFOUND   88
  106. #define ERR_PATTERNNOTFOUND    89
  107. #define ERR_NULLWSINCLONING    90
  108. #define ERR_USERERROR        91
  109. #define ERR_NOFONTFOUND        92
  110. #define ERR_WMANIPC        93
  111. #define ERR_INPUTOPEN        94
  112. #define ERR_RESETINGQ        95
  113. #define ERR_GETTP        96
  114. #define ERR_TOOMANYSIDES    97
  115. #define ERR_INVALIDMODE        98
  116. #define ERR_INVALIDPARENT    99
  117. #define ERR_KNOTS        100
  118. #define ERR_TRIMCURVE        101
  119. #define ERR_NURBS        102
  120. #define ERR_FEEDBUFTOOBIG    103
  121. #define    ERR_NODIALDAEMON    104
  122. #define    ERR_WRTDIALDAEMON    105
  123. #define    ERR_NOWINDOWSERVER    106
  124. #define    ERR_INVALIDGDESC    107
  125. #define    ERR_INTERNALERROR    108
  126. #define ERR_BADFONTFILE        109
  127. #define ERR_INVALIDVALUE    110
  128. #define ERR_BADALIGNMENT    111
  129. #define ERR_CANTCONSTRAINORIGIN    112
  130. #define ERR_ACSIZEISZERO    113
  131. #define ERR_NOGRAPHICS        114
  132. #define ERR_NOTSUPPORTED    115    /* extension not supported */
  133.  
  134. void gl_ErrorHandler(const Int32 error, const Int32 severity, const Char8 *routinename);
  135.  
  136. #ifdef DEBUG
  137. #define GL_ERRORHANDLER(e,t,s)                    \
  138.     fprintf(stderr, "%s(%d): ", __FILE__, __LINE__ ),     \
  139.     gl_ErrorHandler(e,t,s)
  140. #else
  141. #define GL_ERRORHANDLER(e,t,s)    gl_ErrorHandler(e,t,s)
  142. #endif
  143.  
  144. #endif    /* !__GL_GLERROR_H__ */
  145.