summaryrefslogtreecommitdiff
path: root/Include/cpython/context.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-16 13:49:43 +0200
committerGitHub <noreply@github.com>2022-06-16 13:49:43 +0200
commit7546914e3f8157d8bad2998677e0ea3ed4cb7939 (patch)
tree13ca68df49a1a1f0281ecd352991235752a28a09 /Include/cpython/context.h
parent484b40bf189ae881992366f2b7b6b63812d18591 (diff)
downloadcpython-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.h6
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);