diff options
| author | Victor Stinner <vstinner@python.org> | 2022-06-16 13:49:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 13:49:43 +0200 |
| commit | 7546914e3f8157d8bad2998677e0ea3ed4cb7939 (patch) | |
| tree | 13ca68df49a1a1f0281ecd352991235752a28a09 /Include/cpython/context.h | |
| parent | 484b40bf189ae881992366f2b7b6b63812d18591 (diff) | |
| download | cpython-git-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.gz | |
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
Diffstat (limited to 'Include/cpython/context.h')
| -rw-r--r-- | Include/cpython/context.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/cpython/context.h b/Include/cpython/context.h index 4db079f763..9879fc7192 100644 --- a/Include/cpython/context.h +++ b/Include/cpython/context.h @@ -15,9 +15,9 @@ PyAPI_DATA(PyTypeObject) PyContextToken_Type; typedef struct _pycontexttokenobject PyContextToken; -#define PyContext_CheckExact(o) Py_IS_TYPE(o, &PyContext_Type) -#define PyContextVar_CheckExact(o) Py_IS_TYPE(o, &PyContextVar_Type) -#define PyContextToken_CheckExact(o) Py_IS_TYPE(o, &PyContextToken_Type) +#define PyContext_CheckExact(o) Py_IS_TYPE((o), &PyContext_Type) +#define PyContextVar_CheckExact(o) Py_IS_TYPE((o), &PyContextVar_Type) +#define PyContextToken_CheckExact(o) Py_IS_TYPE((o), &PyContextToken_Type) PyAPI_FUNC(PyObject *) PyContext_New(void); |
