Added a test for MUIA_Listview_SelectChange.
[AROS.git] / compiler / stdc / abort.c
blob4e09283101b7de6f3f42166813de409938de58ee
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function exit().
6 */
8 #include <libraries/stdc.h>
10 #include <signal.h>
11 #include <assert.h>
13 /*****************************************************************************
15 NAME */
16 #include <stdlib.h>
18 void abort (
20 /* SYNOPSIS */
21 void)
23 /* FUNCTION
24 Causes abnormal program termination. If there is a signal handler
25 for SIGABORT, then the handler will be called. If the handler
26 returns, then the program is aborted anyway.
28 INPUTS
29 None.
31 RESULT
32 None. This function does not return.
34 NOTES
35 This function must not be used in a shared library or
36 in a threaded application.
38 EXAMPLE
39 if (fatal_error)
40 abort ();
42 BUGS
43 Signal handling is not implemented yet.
45 SEE ALSO
46 signal(), exit()
48 INTERNALS
50 ******************************************************************************/
52 raise(SIGABRT);
54 /* Abort anyway */
55 __stdc_jmp2exit(0, 20);
57 assert(0); /* Should not be reached and will likely bomb recursively */