projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6332d4
)
PyPy doesn't define Py_OptimizeFlag => always set it to off to enable assertions
author
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 30 Aug 2013 07:03:15 +0000
(09:03 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Fri, 30 Aug 2013 07:03:15 +0000
(09:03 +0200)
Cython/Utility/ModuleSetupCode.c
patch
|
blob
|
history
diff --git
a/Cython/Utility/ModuleSetupCode.c
b/Cython/Utility/ModuleSetupCode.c
index
8065ab9
..
c76affd
100644
(file)
--- a/
Cython/Utility/ModuleSetupCode.c
+++ b/
Cython/Utility/ModuleSetupCode.c
@@
-40,6
+40,10
@@
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
+#if CYTHON_COMPILING_IN_PYPY
+#define Py_OptimizeFlag 0
+#endif
+
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX