Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
nodbg.h
Go to the documentation of this file.
1// definition of the nodbg() function
2
3
25#ifdef _WIN32
26
27# include <windows.h>
28
29# ifdef _MSC_VER
30# include <crtdbg.h> // for _CrtSetReportMode()
31# endif
32
33void nodbg ()
34{
35# ifdef _MSC_VER
36 // prevent the Microsoft C library from popping up GUI windows
37 // on various failures and direct error messages to the console
38 // instead
39 _CrtSetReportMode (_CRT_WARN, _CRTDBG_MODE_DEBUG);
40 _CrtSetReportMode (_CRT_ERROR, _CRTDBG_MODE_DEBUG);
41 _CrtSetReportMode (_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
42# endif
43
44 // disable displaying the critical-error-handler
45 // and general-protection-fault message boxes
46 // windows.h included in thread.h
47 SetErrorMode (SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
48}
49
50#else
51
52void nodbg () { }
53
54#endif // _WIN32
void nodbg()
Definition nodbg.h:52