Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
etc
config
src
GLOBAL_SET_TERMINATE.cpp
Go to the documentation of this file.
1
// checking for ::set_terminate()
2
3
25
#include "config.h"
26
27
28
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
29
30
# define throw()
31
32
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
33
34
typedef
void (*
terminate_handler
)();
35
36
// looking for a definition in compiler support library
37
terminate_handler
set_terminate
(
terminate_handler
)
throw
();
38
39
40
void
handler
() { }
41
42
int
main
(
int
argc,
char
*argv[])
43
{
44
(void)&argv;
45
46
if
(argc > 1) {
47
terminate_handler
save
=
set_terminate
(
handler
);
48
49
return
save
==
handler
;
50
}
51
52
return
0;
53
}
save
#define save
Definition
17.names.cpp:538
main
#define main
Definition
BAD_ALLOC_COPY_CTOR.cpp:32
handler
void handler()
Definition
GLOBAL_SET_TERMINATE.cpp:40
terminate_handler
void(* terminate_handler)()
Definition
GLOBAL_SET_TERMINATE.cpp:34
set_terminate
int set_terminate()
Generated by
1.9.8