summaryrefslogtreecommitdiff
path: root/gmp-impl.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <torbjorng@google.com>2015-06-23 21:16:26 +0200
committerTorbjorn Granlund <torbjorng@google.com>2015-06-23 21:16:26 +0200
commit8c955b60f9a05d29ab98104b422b521946f06b55 (patch)
tree75968c14877f14b7732911d21c26467017b58bea /gmp-impl.h
parent26f6b4d6500d8de78ed6f6a185f27a75d02a42f6 (diff)
downloadgmp-8c955b60f9a05d29ab98104b422b521946f06b55.tar.gz
Remove K&R stringize support.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r--gmp-impl.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gmp-impl.h b/gmp-impl.h
index 6b3499854..68eb629c1 100644
--- a/gmp-impl.h
+++ b/gmp-impl.h
@@ -2327,11 +2327,7 @@ struct fft_table_nk
/* ASSERT() is a private assertion checking scheme, similar to <assert.h>.
ASSERT() does the check only if WANT_ASSERT is selected, ASSERT_ALWAYS()
does it always. Generally assertions are meant for development, but
- might help when looking for a problem later too.
-
- Note that strings shouldn't be used within the ASSERT expression,
- eg. ASSERT(strcmp(s,"notgood")!=0), since the quotes upset the "expr"
- used in the !HAVE_STRINGIZE case (ie. K&R). */
+ might help when looking for a problem later too. */
#ifdef __LINE__
#define ASSERT_LINE __LINE__
@@ -2348,11 +2344,7 @@ struct fft_table_nk
__GMP_DECLSPEC void __gmp_assert_header (const char *, int);
__GMP_DECLSPEC void __gmp_assert_fail (const char *, int, const char *) ATTRIBUTE_NORETURN;
-#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
#define ASSERT_ALWAYS(expr) \
do { \