diff Include/pyerrors.h @ 14330:6dee1985c681 legacy-trunk

refactor __del__ exception handler into PyErr_WriteUnraisable add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror.
author Jeremy Hylton <jeremy@alum.mit.edu>
date Fri, 01 Sep 2000 02:47:25 +0000
parents 019265b3a856
children 6f6f965c5e2d
line wrap: on
line diff
--- a/Include/pyerrors.h	Fri Sep 01 02:43:38 2000 +0000
+++ b/Include/pyerrors.h	Fri Sep 01 02:47:25 2000 +0000
@@ -92,6 +92,7 @@
 /* Function to create a new exception */
 DL_IMPORT(PyObject *) PyErr_NewException(char *name, PyObject *base,
                                          PyObject *dict);
+extern DL_IMPORT(void) PyErr_WriteUnraisable(PyObject *);
 
 /* In sigcheck.c or signalmodule.c */
 extern DL_IMPORT(int) PyErr_CheckSignals(void);