summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-14 15:01:17 +0000
committerGuido van Rossum <guido@python.org>1995-03-14 15:01:17 +0000
commita44823b7764281d398215564f2070257d08d0855 (patch)
treeed4666bcb38ecadb7744dabd3b2e74a0fbc060e5 /Python
parent5049bcb164cdfbf834eb95602f8c29ff035a9408 (diff)
downloadcpython-git-a44823b7764281d398215564f2070257d08d0855.tar.gz
In NT, write fatal() msg to debugging device
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e46a526470..96f385f9e2 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -52,6 +52,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <SIOUX.h>
#endif
+#ifdef NT
+#undef BYTE
+#include "windows.h"
+#endif
+
extern char *getpythonpath();
extern grammar gram; /* From graminit.c */
@@ -563,6 +568,11 @@ fatal(msg)
#ifdef macintosh
for (;;);
#endif
+#ifdef NT
+ OutputDebugString("Fatal Python error:");
+ OutputDebugString(msg);
+ OutputDebugString("\n");
+#endif
abort();
}