Skip to content

Commit

Permalink
add Py_TRASHCAN_BEGIN/END empty macros for PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Dec 1, 2024
1 parent 1376b81 commit 7e41c60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions asynctnt/iproto/tupleobj/tupleobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
extern "C" {
#endif

#if defined(PYPY_VERSION)
# define Py_TRASHCAN_BEGIN(op, dealloc)
# define Py_TRASHCAN_END(op)
#endif

#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8
# define CPy_TRASHCAN_BEGIN(op, dealloc) Py_TRASHCAN_BEGIN(op, dealloc)
# define CPy_TRASHCAN_END(op) Py_TRASHCAN_END
Expand Down

0 comments on commit 7e41c60

Please sign in to comment.