diff options
author | Guido van Rossum <guido@python.org> | 1995-03-14 15:01:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-14 15:01:17 (GMT) |
commit | a44823b7764281d398215564f2070257d08d0855 (patch) | |
tree | ed4666bcb38ecadb7744dabd3b2e74a0fbc060e5 /Python/pythonrun.c | |
parent | 5049bcb164cdfbf834eb95602f8c29ff035a9408 (diff) | |
download | cpython-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.c | 10 |
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(); } |