ReactOS 0.4.16-dev-2104-gb84fa49
abort.c File Reference
#include "precomp.h"
#include <signal.h>
Include dependency graph for abort.c:

Go to the source code of this file.

Functions

void __cdecl abort (void)
 Aborts the program.
 

Variables

unsigned int __abort_behavior = _WRITE_ABORT_MSG | _CALL_REPORTFAULT
 
static const char abort_msg []
 

Function Documentation

◆ abort()

void __cdecl abort ( void  )

Aborts the program.

Note
The function does not return.
Todo:
unimplemented

Definition at line 25 of file abort.c.

27{
28 /* Check if a message should be output */
30 {
31 /* Check if we should display a message box */
34 {
35 /* Output a message box */
37 }
38 else
39 {
40 /* Print message to stderr */
41 fprintf(stderr, "%s\n", abort_msg);
42 }
43 }
44
45 /* Check if faultrep handler should be called */
47 {
49 (void)0;
50 }
51
53 _exit(3);
54}
unsigned int __abort_behavior
Definition: abort.c:12
static const char abort_msg[]
Definition: abort.c:14
int CDECL raise(int sig)
Definition: except.c:682
void CDECL _exit(int exitcode)
Definition: exit.c:187
int WINAPIV fprintf(FILE *file, const char *format,...)
Definition: file.c:5549
#define stderr
#define SIGABRT
Definition: signal.h:31
#define _CALL_REPORTFAULT
Definition: stdlib.h:80
#define _OUT_TO_MSGBOX
Definition: stdlib.h:75
#define _OUT_TO_DEFAULT
Definition: stdlib.h:73
#define _WRITE_ABORT_MSG
Definition: stdlib.h:79
#define _GUI_APP
Definition: internal.h:146
int __cdecl __crt_MessageBoxA(_In_opt_ const char *pszText, _In_ unsigned int uType)
int msvcrt_error_mode
Definition: errno.c:113
int __app_type
Definition: environ.c:30
#define MB_ICONERROR
Definition: winuser.h:798
#define MB_OK
Definition: winuser.h:801

Variable Documentation

◆ __abort_behavior

Definition at line 12 of file abort.c.

Referenced by abort().

◆ abort_msg

const char abort_msg[]
static
Initial value:
=
"This application has requested the Runtime to terminate in an unusual way.\n"
"Please contact the application's support team for more information.\0"

Definition at line 14 of file abort.c.

Referenced by abort().