summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-07 18:38:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-07 18:38:51 (GMT)
commit59c900d3bf85965efe7edc1a3bb7e9b49512f6ab (patch)
treec35182a257ea7756a27e7b67c6b26ee55c7daf3e /Include
parentc377fe2b968f8e1a5f276063a41cd4df75d4af2f (diff)
downloadcpython-59c900d3bf85965efe7edc1a3bb7e9b49512f6ab.zip
cpython-59c900d3bf85965efe7edc1a3bb7e9b49512f6ab.tar.gz
cpython-59c900d3bf85965efe7edc1a3bb7e9b49512f6ab.tar.bz2
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyerrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index af37410..e385123 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -100,7 +100,7 @@ PyAPI_FUNC(void) Py_FatalError(const char *message) _Py_NO_RETURN;
#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 */