mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-87347: Add parenthesis around macro arguments (#93915)
Add unit test on Py_MEMBER_SIZE() and some other macros.
This commit is contained in:
parent
61f24e7885
commit
7ad6f74fcf
30 changed files with 171 additions and 143 deletions
|
|
@ -97,7 +97,7 @@ _Py_EnsureFuncTstateNotNULL(const char *func, PyThreadState *tstate)
|
|||
|
||||
// Call Py_FatalError() if tstate is NULL
|
||||
#define _Py_EnsureTstateNotNULL(tstate) \
|
||||
_Py_EnsureFuncTstateNotNULL(__func__, tstate)
|
||||
_Py_EnsureFuncTstateNotNULL(__func__, (tstate))
|
||||
|
||||
|
||||
/* Get the current interpreter state.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue