Skip to content

Commit

Permalink
Format PyStackRef_CLOSE
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Aug 21, 2024
1 parent 3ad425b commit b924258
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Include/internal/pycore_stackref.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ PyStackRef_FromPyObjectImmortal(PyObject *obj)
} while (0)

#ifdef Py_GIL_DISABLED
# define PyStackRef_CLOSE(stackref) \
do { \
_PyStackRef _close_tmp = (stackref); \
if (!PyStackRef_IsDeferred(_close_tmp)) { \
Py_DECREF(PyStackRef_AsPyObjectBorrow(_close_tmp)); \
} \
# define PyStackRef_CLOSE(REF) \
do { \
_PyStackRef _close_tmp = (REF); \
if (!PyStackRef_IsDeferred(_close_tmp)) { \
Py_DECREF(PyStackRef_AsPyObjectBorrow(_close_tmp)); \
} \
} while (0)
#else
# define PyStackRef_CLOSE(stackref) Py_DECREF(PyStackRef_AsPyObjectBorrow(stackref))
Expand Down

0 comments on commit b924258

Please sign in to comment.