From 59c900d3bf85965efe7edc1a3bb7e9b49512f6ab Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 7 Oct 2013 20:38:51 +0200 Subject: Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions. --- Include/pyerrors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/pyerrors.h') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index af37410e23..e38512307e 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 */ -- cgit v1.2.1