mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
In NT, write fatal() msg to debugging device
This commit is contained in:
parent
5049bcb164
commit
a44823b776
1 changed files with 10 additions and 0 deletions
|
@ -52,6 +52,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <SIOUX.h>
|
#include <SIOUX.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NT
|
||||||
|
#undef BYTE
|
||||||
|
#include "windows.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char *getpythonpath();
|
extern char *getpythonpath();
|
||||||
|
|
||||||
extern grammar gram; /* From graminit.c */
|
extern grammar gram; /* From graminit.c */
|
||||||
|
@ -562,6 +567,11 @@ fatal(msg)
|
||||||
fprintf(stderr, "Fatal Python error: %s\n", msg);
|
fprintf(stderr, "Fatal Python error: %s\n", msg);
|
||||||
#ifdef macintosh
|
#ifdef macintosh
|
||||||
for (;;);
|
for (;;);
|
||||||
|
#endif
|
||||||
|
#ifdef NT
|
||||||
|
OutputDebugString("Fatal Python error:");
|
||||||
|
OutputDebugString(msg);
|
||||||
|
OutputDebugString("\n");
|
||||||
#endif
|
#endif
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue