Add DebugBreak() call to Py_FatalError() for Mark Hammond (only on

Win32 in Debug mode).
This commit is contained in:
Guido van Rossum 1998-08-13 13:33:16 +00:00
parent 541f241132
commit 0ba353608f

View file

@ -1025,7 +1025,10 @@ Py_FatalError(msg)
OutputDebugString("Fatal Python error: "); OutputDebugString("Fatal Python error: ");
OutputDebugString(msg); OutputDebugString(msg);
OutputDebugString("\n"); OutputDebugString("\n");
#ifdef _DEBUG
DebugBreak();
#endif #endif
#endif /* MS_WIN32 */
abort(); abort();
} }