Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 2529:16ea57c38c4f legacy-trunk
In NT, write fatal() msg to debugging device
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 14 Mar 1995 15:01:17 +0000 |
| parents | 99e7ac22bd2e |
| children | ca6b60d4ea90 |
line wrap: on
line diff
--- a/Python/pythonrun.c Mon Mar 13 16:55:23 1995 +0000 +++ b/Python/pythonrun.c Tue Mar 14 15:01:17 1995 +0000 @@ -52,6 +52,11 @@ #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 @@ #ifdef macintosh for (;;); #endif +#ifdef NT + OutputDebugString("Fatal Python error:"); + OutputDebugString(msg); + OutputDebugString("\n"); +#endif abort(); }
