ReactOS 0.4.15-dev-5667-ged97270
amsg.c File Reference
#include <precomp.h>
Include dependency graph for amsg.c:

Go to the source code of this file.

Typedefs

typedef void(* aexit_t) (int)
 

Functions

void _amsg_exit (int errnum)
 

Variables

static char__rt_err_msg []
 
aexit_t _aexit_rtn = _exit
 

Typedef Documentation

◆ aexit_t

typedef void(* aexit_t) (int)

Definition at line 38 of file amsg.c.

Function Documentation

◆ _amsg_exit()

void _amsg_exit ( int  errnum)

Definition at line 44 of file amsg.c.

45{
46 if ((errnum >=0) && (errnum < sizeof(__rt_err_msg)/sizeof(__rt_err_msg[0])))
47 fprintf(stderr, "runtime error - %s\n", __rt_err_msg[errnum]);
48 else
49 fprintf(stderr, "runtime error - %d\n", errnum);
50 _exit(-1);
51}
void _exit(int exitcode)
Definition: _exit.c:25
static char * __rt_err_msg[]
Definition: amsg.c:13
#define stderr
Definition: stdio.h:100
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)

Referenced by _purecall(), and msvcrt_get_thread_data().

Variable Documentation

◆ __rt_err_msg

char* __rt_err_msg[]
static
Initial value:
=
{
"stack overflow",
"null pointer assignment",
"floating point not loaded",
"integer divide by 0",
"not enough space for arguments",
"not enough space for environment",
"abnormal program termination",
"not enough space for thread data",
"unexpected multithread lock error",
"unexpected heap error",
"unable to open console device",
"non-continuable exception",
"invalid exception disposition",
"not enough space for _onexit/atexit table",
"pure virtual function call",
"not enough space for stdio initialization",
"not enough space for lowio initialization",
}

Definition at line 13 of file amsg.c.

Referenced by _amsg_exit().

◆ _aexit_rtn

aexit_t _aexit_rtn = _exit

Definition at line 39 of file amsg.c.

Referenced by Test__aexit_rtn().