diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-07 18:40:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-07 18:40:59 (GMT) |
commit | 1cfa0ba8833c18a330fe9653276de29911198dec (patch) | |
tree | 534449bba373b0d1f796be7394da57e7b766f3ee /Include/pyerrors.h | |
parent | 648f860c227187d01f00934e2e9453b32241bdaf (diff) | |
parent | 59c900d3bf85965efe7edc1a3bb7e9b49512f6ab (diff) | |
download | cpython-1cfa0ba8833c18a330fe9653276de29911198dec.zip cpython-1cfa0ba8833c18a330fe9653276de29911198dec.tar.gz cpython-1cfa0ba8833c18a330fe9653276de29911198dec.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/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index f89d1ad..224567b 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 */ |