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