summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-26 12:56:59 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2012-06-26 12:56:59 +0000
commitbaab7fa262e0bc5dc5faaf146a35eb8de6f4ebb1 (patch)
tree22c8544b817d9806a27c454d7d038ea37c1bc6fc
parentb03221371ac8a8906efef56991861b79b0fb0eef (diff)
downloadmpc-baab7fa262e0bc5dc5faaf146a35eb8de6f4ebb1.tar.gz
mpc-impl.h: take NDBUG into account for MPC_ASSERT
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1163 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--src/mpc-impl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mpc-impl.h b/src/mpc-impl.h
index 2be26ca..a9f9906 100644
--- a/src/mpc-impl.h
+++ b/src/mpc-impl.h
@@ -121,6 +121,11 @@ __MPC_DECLSPEC int mpfr_regular_p (mpfr_srcptr);
* ASSERT macros
*/
+#ifdef NDEBUG
+#define MPC_ASSERT(expr) \
+ do { \
+ } while (0)
+#else
#define MPC_ASSERT(expr) \
do { \
if (!(expr)) \
@@ -130,7 +135,7 @@ __MPC_DECLSPEC int mpfr_regular_p (mpfr_srcptr);
abort(); \
} \
} while (0)
-
+#endif
/*
* Constants