summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-03-08 22:02:53 +0100
committerKevin Ryde <user42@zip.com.au>2000-03-08 22:02:53 +0100
commitf637ace34cd7dcc2c33a3c291bbcc0daeecb5921 (patch)
tree9ce77b7bbe9374b04edab994e0c6d522880261af /gmp-impl.h
parentb60c303f5f8903a758c05d0508b9a96640af1038 (diff)
downloadgmp-f637ace34cd7dcc2c33a3c291bbcc0daeecb5921.tar.gz
Yet another correction to ASSERT added the other day.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 012a72343..8734beb0e 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -302,8 +302,10 @@ _MPN_COPY (d, s, n) mp_ptr d; mp_srcptr s; mp_size_t n;
/* Really use `defined (__STDC__)' here; we want it to be true for Sun C */
#if defined (__STDC__) || defined (__cplusplus)
#define ASSERT_FAIL(expr) __gmp_assert_fail (ASSERT_FILE, ASSERT_LINE, #expr)
+#define ASSERT_VOID (void)
#else
#define ASSERT_FAIL(expr) __gmp_assert_fail (ASSERT_FILE, ASSERT_LINE, "expr")
+#define ASSERT_VOID
#endif
#define ASSERT_ALWAYS(expr) ((expr) ? 0 : ASSERT_FAIL (expr))
@@ -312,7 +314,7 @@ _MPN_COPY (d, s, n) mp_ptr d; mp_srcptr s; mp_size_t n;
#define ASSERT(expr) ASSERT_ALWAYS (expr)
#define ASSERT_NOCARRY(expr) ASSERT_ALWAYS ((expr) == 0)
#else
-#define ASSERT(expr)
+#define ASSERT(expr) (ASSERT_VOID 0)
#define ASSERT_NOCARRY(expr) (expr)
#endif