From: Guido van Rossum Date: Tue, 14 Mar 1995 15:01:17 +0000 (+0000) Subject: In NT, write fatal() msg to debugging device X-Git-Tag: v1.2b4~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a44823b7764281d398215564f2070257d08d0855;p=thirdparty%2FPython%2Fcpython.git In NT, write fatal() msg to debugging device --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e46a52647059..96f385f9e28a 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 #endif +#ifdef NT +#undef BYTE +#include "windows.h" +#endif + extern char *getpythonpath(); extern grammar gram; /* From graminit.c */ @@ -562,6 +567,11 @@ fatal(msg) fprintf(stderr, "Fatal Python error: %s\n", msg); #ifdef macintosh for (;;); +#endif +#ifdef NT + OutputDebugString("Fatal Python error:"); + OutputDebugString(msg); + OutputDebugString("\n"); #endif abort(); }