From 7e41c605012c4392c0f0b65320b9df691f21d037 Mon Sep 17 00:00:00 2001 From: igorcoding Date: Sun, 1 Dec 2024 14:10:03 +0300 Subject: [PATCH] add Py_TRASHCAN_BEGIN/END empty macros for PyPy --- asynctnt/iproto/tupleobj/tupleobj.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/asynctnt/iproto/tupleobj/tupleobj.h b/asynctnt/iproto/tupleobj/tupleobj.h index 80417ce..f8f7899 100644 --- a/asynctnt/iproto/tupleobj/tupleobj.h +++ b/asynctnt/iproto/tupleobj/tupleobj.h @@ -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