[pypy-commit] pypy default: this enables building opencv2 since they use these macros
mattip
pypy.commits at gmail.com
Mon May 13 00:10:55 EDT 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r96608:3175515ea703
Date: 2019-05-12 20:19 -0700
http://bitbucket.org/pypy/pypy/changeset/3175515ea703/
Log: this enables building opencv2 since they use these macros
diff --git a/pypy/module/cpyext/include/object.h b/pypy/module/cpyext/include/object.h
--- a/pypy/module/cpyext/include/object.h
+++ b/pypy/module/cpyext/include/object.h
@@ -391,6 +391,16 @@
PyAPI_FUNC(PyVarObject *) PyObject_InitVar(PyVarObject *,
PyTypeObject *, Py_ssize_t);
+/*
+ * On CPython with Py_REF_DEBUG these use _PyRefTotal, _Py_NegativeRefcount,
+ * _Py_GetRefTotal, ...
+ * So far we ignore Py_REF_DEBUG
+ */
+
+#define _Py_INC_REFTOTAL
+#define _Py_DEC_REFTOTAL
+#define _Py_REF_DEBUG_COMMA
+#define _Py_CHECK_REFCNT(OP) /* a semicolon */;
/* PyPy internal ----------------------------------- */
PyAPI_FUNC(int) PyPyType_Register(PyTypeObject *);
More information about the pypy-commit
mailing list