xref: /reactos/sdk/lib/crt/include/internal/rterror.h (revision 1734f297)
1 /* rterror.h */
2 
3 #ifndef __CRT_INTERNAL_RTERROR_H
4 #define __CRT_INTERNAL_RTERROR_H
5 
6 
7 #define _RT_STACK       0   /* stack overflow */
8 #define _RT_NULLPTR     1   /* null pointer assignment */
9 #define _RT_FLOAT       2   /* floating point not loaded */
10 #define _RT_INTDIV      3   /* integer divide by 0 */
11 #define _RT_SPACEARG    4   /* not enough space for arguments */
12 #define _RT_SPACEENV    5   /* not enough space for environment */
13 #define _RT_ABORT       6   /* abnormal program termination */
14 #define _RT_THREAD      7   /* not enough space for thread data */
15 #define _RT_LOCK        8   /* unexpected multi-thread lock error */
16 #define _RT_HEAP        9   /* unexpected heap error */
17 #define _RT_OPENCON     10  /* unable to open console device */
18 #define _RT_NONCONT     11  /* non-continuable exception */
19 #define _RT_INVALDISP   12  /* invalid disposition of exception */
20 #define _RT_ONEXIT      13  /* insufficient heap to allocate
21                              * initial table of function pointers
22                              * used by _onexit()/atexit(). */
23 #define _RT_PUREVIRT    14  /* pure virtual function call attempted
24                              * (C++ error) */
25 #define _RT_STDIOINIT   15  /* not enough space for stdio initialization */
26 #define _RT_LOWIOINIT   16  /* not enough space for lowio initialization */
27 
28 __declspec(noreturn) void _amsg_exit (int errnum);
29 
30 /* not in any other header */
31 void _dosmaperr(unsigned long oserrcode);
32 
33 #endif  /* __MSVCRT_INTERNAL_RTERROR_H */
34