diff Include/pyerrors.h @ 86140:2aee9c41bb79 3.3

Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 07 Oct 2013 20:38:51 +0200
parents e2df976b8a33
children 19954e5dbef5
line wrap: on
line diff
--- a/Include/pyerrors.h	Sun Oct 06 21:22:42 2013 +0200
+++ b/Include/pyerrors.h	Mon Oct 07 20:38:51 2013 +0200
@@ -100,7 +100,7 @@
 #if defined(Py_DEBUG) || defined(Py_LIMITED_API)
 #define _PyErr_OCCURRED() PyErr_Occurred()
 #else
-#define _PyErr_OCCURRED() (_PyThreadState_Current->curexc_type)
+#define _PyErr_OCCURRED() (PyThreadState_GET()->curexc_type)
 #endif
 
 /* Error testing and normalization */