Skip to content

Commit

Permalink
fix for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Dec 1, 2024
1 parent 7e41c60 commit fcb2ab4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions asynctnt/iproto/tupleobj/tupleobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ extern "C" {
#endif

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

#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 8
# define CPy_TRASHCAN_BEGIN(op, dealloc) Py_TRASHCAN_BEGIN(op, dealloc)
Expand All @@ -21,6 +21,8 @@ extern "C" {
# define CPy_TRASHCAN_END(op) Py_TRASHCAN_SAFE_END(op)
#endif

#endif

/* Largest ttuple to save on free list */
#define AtntTuple_MAXSAVESIZE 20

Expand Down

0 comments on commit fcb2ab4

Please sign in to comment.