Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenamsg.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/msvcrt/misc/amsg.c 00005 * PURPOSE: Print runtime error messages 00006 * PROGRAMER: Ariadne 00007 * UPDATE HISTORY: 00008 * 28/12/98: Created 00009 */ 00010 00011 #include <precomp.h> 00012 00013 static char *__rt_err_msg[] = 00014 { 00015 "stack overflow", /* _RT_STACK */ 00016 "null pointer assignment", /* _RT_NULLPTR */ 00017 "floating point not loaded", /* _RT_FLOAT */ 00018 "integer divide by 0", /* _RT_INTDIV */ 00019 "not enough space for arguments", /* _RT_SPACEARG */ 00020 "not enough space for environment", /* _RT_SPACEENV */ 00021 "abnormal program termination", /* _RT_ABORT */ 00022 "not enough space for thread data", /* _RT_THREAD */ 00023 "unexpected multithread lock error", /* _RT_LOCK */ 00024 "unexpected heap error", /* _RT_HEAP */ 00025 "unable to open console device", /* _RT_OPENCON */ 00026 "non-continuable exception", /* _RT_NONCONT */ 00027 "invalid exception disposition", /* _RT_INVALDISP */ 00028 "not enough space for _onexit/atexit table", /* _RT_ONEXIT */ 00029 "pure virtual function call", /* _RT_PUREVIRT */ 00030 "not enough space for stdio initialization", /* _RT_STDIOINIT */ 00031 "not enough space for lowio initialization", /* _RT_LOWIOINIT */ 00032 }; 00033 00034 00035 /* 00036 * @implemented 00037 */ 00038 int _aexit_rtn(int exitcode) 00039 { 00040 _exit(exitcode); 00041 return 0; 00042 } 00043 00044 /* 00045 * @implemented 00046 */ 00047 void _amsg_exit(int errnum) 00048 { 00049 fprintf(stderr, "runtime error - %s\n", __rt_err_msg[errnum]); 00050 _aexit_rtn(-1); 00051 } 00052 Generated on Thu May 24 2012 04:36:57 for ReactOS by
1.7.6.1
|