home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / rterr.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  3KB  |  92 lines

  1. /***
  2. *rterr.h - runtime errors
  3. *
  4. *       Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This file defines the C runtime errors
  8. *
  9. *       [Internal]
  10. *
  11. ****/
  12.  
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif  /* _MSC_VER > 1000 */
  16.  
  17. #ifndef _INC_RTERR
  18. #define _INC_RTERR
  19.  
  20. #ifndef _CRTBLD
  21. /*
  22.  * This is an internal C runtime header file. It is used when building
  23.  * the C runtimes only. It is not to be used as a public header file.
  24.  */
  25. #error ERROR: Use of C runtime library internal header file.
  26. #endif  /* _CRTBLD */
  27.  
  28. #define _RT_STACK       0               /* stack overflow */
  29. #define _RT_NULLPTR     1               /* null pointer assignment */
  30. #define _RT_FLOAT       2               /* floating point not loaded */
  31. #define _RT_INTDIV      3               /* integer divide by 0 */
  32.  
  33. /*
  34.  * the following three errors must be in the given order!
  35.  */
  36. #define _RT_EXECMEM     5               /* not enough memory on exec */
  37. #define _RT_EXECFORM    6               /* bad format on exec */
  38. #define _RT_EXECENV     7               /* bad environment on exec */
  39.  
  40. #define _RT_SPACEARG    8               /* not enough space for arguments */
  41. #define _RT_SPACEENV    9               /* not enough space for environment */
  42. #define _RT_ABORT       10              /* Abnormal program termination */
  43.  
  44. #define _RT_NPTR        12              /* illegal near pointer use */
  45. #define _RT_FPTR        13              /* illegal far pointer use */
  46. #define _RT_BREAK       14              /* control-BREAK encountered */
  47. #define _RT_INT         15              /* unexpected interrupt */
  48. #define _RT_THREAD      16              /* not enough space for thread data */
  49. #define _RT_LOCK        17              /* unexpected multi-thread lock error */
  50. #define _RT_HEAP        18              /* unexpected heap error */
  51. #define _RT_OPENCON     19              /* unable to open console device */
  52.  
  53. /*
  54.  * _RT_QWIN and _RT_NOMAIN are used in 16-bit Windows support
  55.  */
  56. #define _RT_QWIN        20              /* unexpected QuickWin error */
  57. #define _RT_NOMAIN      21              /* no main procedure */
  58.  
  59.  
  60. #define _RT_NONCONT     22              /* non-continuable exception */
  61. #define _RT_INVALDISP   23              /* invalid disposition of exception */
  62.  
  63.  
  64. /*
  65.  * _RT_ONEXIT is specific to Win32 and Dosx32 platforms
  66.  */
  67. #define _RT_ONEXIT      24              /* insufficient heap to allocate
  68.                                          * initial table of funct. ptrs
  69.                                          * used by _onexit()/atexit(). */
  70.  
  71. #define _RT_PUREVIRT    25              /* pure virtual function call attempted
  72.                                          * (C++ error) */
  73.  
  74. #define _RT_STDIOINIT   26              /* not enough space for stdio initial-
  75.                                          * ization */
  76. #define _RT_LOWIOINIT   27              /* not enough space for lowio initial-
  77.                                          * ization */
  78. #define _RT_HEAPINIT    28              /* heap failed to initialize */
  79.  
  80. /*
  81.  * _RT_DOMAIN, _RT_SING and _RT_TLOSS are generated by the floating point
  82.  * library.
  83.  */
  84. #define _RT_DOMAIN      120
  85. #define _RT_SING        121
  86. #define _RT_TLOSS       122
  87.  
  88. #define _RT_CRNL        252
  89. #define _RT_BANNER      255
  90.  
  91. #endif  /* _INC_RTERR */
  92.