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