summaryrefslogtreecommitdiff
path: root/Include/pyerrors.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-07 20:40:59 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-07 20:40:59 +0200
commit1cfa0ba8833c18a330fe9653276de29911198dec (patch)
tree534449bba373b0d1f796be7394da57e7b766f3ee /Include/pyerrors.h
parent648f860c227187d01f00934e2e9453b32241bdaf (diff)
parent59c900d3bf85965efe7edc1a3bb7e9b49512f6ab (diff)
downloadcpython-git-1cfa0ba8833c18a330fe9653276de29911198dec.tar.gz
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/pyerrors.h')
-rw-r--r--Include/pyerrors.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index f89d1add20..224567ba59 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -101,7 +101,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 */