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
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
33
void
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
52
void
nodbg
() { }
53
54
#endif
// _WIN32
nodbg
void nodbg()
Definition
nodbg.h:52
Generated by
1.9.8