ReactOS  0.4.15-dev-5463-g138eb58
abort.c File Reference
#include "precomp.h"
#include <signal.h>
Include dependency graph for abort.c:

Go to the source code of this file.


void __cdecl abort (void)
 Aborts the program. More...


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

Function Documentation

◆ abort()

void __cdecl abort ( void  )

Aborts the program.

The function does not return.

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  }
45  /* Check if faultrep handler should be called */
47  {
49  (void)0;
50  }
52  raise(SIGABRT);
53  _exit(3);
54 }
#define SIGABRT
Definition: signal.h:28
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
int msvcrt_error_mode
Definition: errno.c:115
Definition: stdlib.h:110
unsigned int __abort_behavior
Definition: abort.c:12
Definition: stdlib.h:115
Definition: stdlib.h:116
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void _exit(int exitcode)
Definition: _exit.c:25
#define _OUT_TO_MSGBOX
Definition: stdlib.h:112
int __app_type
Definition: environ.c:30
Definition: winuser.h:781
int __cdecl __crt_MessageBoxA(_In_opt_ const char *pszText, _In_ unsigned int uType)
#define MB_OK
Definition: winuser.h:784
FILE * stderr
#define _GUI_APP
Definition: internal.h:146
static const char abort_msg[]
Definition: abort.c:14

Variable Documentation

◆ __abort_behavior

Definition at line 12 of file abort.c.

Referenced by _set_abort_behavior(), and abort().

◆ abort_msg

const char abort_msg[]
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().