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

  1. /***
  2. *cmsgs.h - runtime errors
  3. *
  4. *       Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       The file defines, in one place, all error message strings used within
  8. *       the C run-time library.
  9. *
  10. *       [Internal]
  11. *
  12. ****/
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif  /* _MSC_VER > 1000 */
  17.  
  18. #ifndef _INC_CMSGS
  19. #define _INC_CMSGS
  20.  
  21. #ifndef _CRTBLD
  22. /*
  23.  * This is an internal C runtime header file. It is used when building
  24.  * the C runtimes only. It is not to be used as a public header file.
  25.  */
  26. #error ERROR: Use of C runtime library internal header file.
  27. #endif  /* _CRTBLD */
  28.  
  29. /*
  30.  * runtime error and termination messages
  31.  */
  32.  
  33. #ifdef _MAC
  34. #define EOL "\n"
  35. #else  /* _MAC */
  36. #define EOL "\r\n"
  37. #endif  /* _MAC */
  38.  
  39. #define _RT_STACK_TXT      "R6000" EOL "- stack overflow" EOL
  40.  
  41. #define _RT_FLOAT_TXT      "R6002" EOL "- floating point not loaded" EOL
  42.  
  43. #define _RT_INTDIV_TXT     "R6003" EOL "- integer divide by 0" EOL
  44.  
  45. #define _RT_SPACEARG_TXT   "R6008" EOL "- not enough space for arguments" EOL
  46.  
  47. #define _RT_SPACEENV_TXT   "R6009" EOL "- not enough space for environment" EOL
  48.  
  49. #define _RT_ABORT_TXT      "" EOL "abnormal program termination" EOL
  50.  
  51. #define _RT_THREAD_TXT     "R6016" EOL "- not enough space for thread data" EOL
  52.  
  53. #define _RT_LOCK_TXT       "R6017" EOL "- unexpected multithread lock error" EOL
  54.  
  55. #define _RT_HEAP_TXT       "R6018" EOL "- unexpected heap error" EOL
  56.  
  57. #define _RT_OPENCON_TXT    "R6019" EOL "- unable to open console device" EOL
  58.  
  59. #define _RT_NONCONT_TXT    "R6022" EOL "- non-continuable exception" EOL
  60.  
  61. #define _RT_INVALDISP_TXT  "R6023" EOL "- invalid exception disposition" EOL
  62.  
  63. /*
  64.  * _RT_ONEXIT_TXT is specific to Win32 and Dosx32 platforms
  65.  */
  66. #define _RT_ONEXIT_TXT     "R6024" EOL "- not enough space for _onexit/atexit table" EOL
  67.  
  68. #define _RT_PUREVIRT_TXT   "R6025" EOL "- pure virtual function call" EOL
  69.  
  70. #define _RT_STDIOINIT_TXT  "R6026" EOL "- not enough space for stdio initialization" EOL
  71.  
  72. #define _RT_LOWIOINIT_TXT  "R6027" EOL "- not enough space for lowio initialization" EOL
  73.  
  74. #define _RT_HEAPINIT_TXT   "R6028" EOL "- unable to initialize heap" EOL
  75.  
  76. /*
  77.  * _RT_DOMAIN_TXT, _RT_SING_TXT and _RT_TLOSS_TXT are used by the floating
  78.  * point library.
  79.  */
  80. #define _RT_DOMAIN_TXT     "DOMAIN error" EOL
  81.  
  82. #define _RT_SING_TXT       "SING error" EOL
  83.  
  84. #define _RT_TLOSS_TXT      "TLOSS error" EOL
  85.  
  86.  
  87. #define _RT_CRNL_TXT       EOL
  88.  
  89. #define _RT_BANNER_TXT     "runtime error "
  90.  
  91.  
  92. #endif  /* _INC_CMSGS */
  93.