summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-14 15:01:17 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-14 15:01:17 (GMT)
commita44823b7764281d398215564f2070257d08d0855 (patch)
treeed4666bcb38ecadb7744dabd3b2e74a0fbc060e5 /Python/pythonrun.c
parent5049bcb164cdfbf834eb95602f8c29ff035a9408 (diff)
downloadcpython-a44823b7764281d398215564f2070257d08d0855.zip
cpython-a44823b7764281d398215564f2070257d08d0855.tar.gz
cpython-a44823b7764281d398215564f2070257d08d0855.tar.bz2
In NT, write fatal() msg to debugging device
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e46a526..96f385f 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();
}