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_UNEXPECTED.cpp
Go to the documentation of this file.
1
// checking for ::set_unexpected()
2
3
25
#include "config.h"
26
27
#ifdef _RWSTD_NO_EXCEPTION_SPECIFICATION
28
29
# define throw()
30
31
#endif
// _RWSTD_NO_EXCEPTION_SPECIFICATION
32
33
typedef
void (*
unexpected_handler
)();
34
35
// looking for a definition in compiler support library
36
unexpected_handler
set_unexpected
(
unexpected_handler
)
throw
();
37
38
39
void
handler
() { }
40
41
int
main
(
int
argc,
char
*argv[])
42
{
43
if
(argc > 1) {
44
unexpected_handler
save
=
set_unexpected
(
handler
);
45
46
return
save
==
handler
;
47
}
48
49
return
0;
50
}
save
#define save
Definition
17.names.cpp:538
main
#define main
Definition
BAD_ALLOC_COPY_CTOR.cpp:32
unexpected_handler
void(* unexpected_handler)()
Definition
GLOBAL_SET_UNEXPECTED.cpp:33
handler
void handler()
Definition
GLOBAL_SET_UNEXPECTED.cpp:39
set_unexpected
int set_unexpected()
Generated by
1.9.8