diff options
author | Guido van Rossum <guido@python.org> | 1995-03-14 15:01:17 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-14 15:01:17 +0000 |
commit | a44823b7764281d398215564f2070257d08d0855 (patch) | |
tree | ed4666bcb38ecadb7744dabd3b2e74a0fbc060e5 /Python | |
parent | 5049bcb164cdfbf834eb95602f8c29ff035a9408 (diff) | |
download | cpython-git-a44823b7764281d398215564f2070257d08d0855.tar.gz |
In NT, write fatal() msg to debugging device
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 10 |
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(); } |