Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
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
33typedef void (*unexpected_handler)();
34
35// looking for a definition in compiler support library
37
38
39void handler () { }
40
41int main (int argc, char *argv[])
42{
43 if (argc > 1) {
45
46 return save == handler;
47 }
48
49 return 0;
50}
#define save
Definition 17.names.cpp:538
#define main
void(* unexpected_handler)()
void handler()
int set_unexpected()