[pypy-commit] pypy default: Improve the speed of some non-jitted parts of the code, by disabling the assert() there when
arigo
noreply at buildbot.pypy.org
Fri Jul 4 14:23:48 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r72355:7c2871e9cb26
Date: 2014-07-04 14:21 +0200
http://bitbucket.org/pypy/pypy/changeset/7c2871e9cb26/
Log: Improve the speed of some non-jitted parts of the code, by disabling
the assert() there when compiled in non-debug mode.
diff --git a/rpython/translator/tool/cbuild.py b/rpython/translator/tool/cbuild.py
--- a/rpython/translator/tool/cbuild.py
+++ b/rpython/translator/tool/cbuild.py
@@ -361,4 +361,8 @@
typedef unsigned long Unsigned;
# define SIGNED_MIN LONG_MIN
#endif
+
+#if !defined(RPY_ASSERT) && !defined(RPY_LL_ASSERT)
+# define NDEBUG
+#endif
'''
More information about the pypy-commit
mailing list