summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-03-14 22:30:41 +0100
committerKevin Ryde <user42@zip.com.au>2000-03-14 22:30:41 +0100
commitb57c8886bb208dd766f3195088dbc09cce4e6ca7 (patch)
tree2292a0fd2cf41bb2a52945a28176fac6a641ba64 /gmp-impl.h
parent9117af1b557a2401361a8d10c2d94d03f5cc01c1 (diff)
downloadgmp-b57c8886bb208dd766f3195088dbc09cce4e6ca7.tar.gz
Use HAVE_STRINGIZE with ASSERT_FAIL.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index dd3e24179..07159cf16 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -301,12 +301,16 @@ _MPN_COPY (d, s, n) mp_ptr d; mp_srcptr s; mp_size_t n;
#define ASSERT_FILE ""
#endif
+#if HAVE_STRINGIZE
+#define ASSERT_FAIL(expr) __gmp_assert_fail (ASSERT_FILE, ASSERT_LINE, #expr)
+#else
+#define ASSERT_FAIL(expr) __gmp_assert_fail (ASSERT_FILE, ASSERT_LINE, "expr")
+#endif
+
/* 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