summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-14 19:09:05 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-14 19:09:05 -0400
commit769643bbe17b48e7072b974391544c707b1f71fb (patch)
treefdd742a99b584943cbdd26a6cee3e7bd458855c2 /misc.h
parent388a2e6ded4ccea14c2aaa8a0ed420882de3a240 (diff)
downloadcryptopp-git-769643bbe17b48e7072b974391544c707b1f71fb.tar.gz
Fix macro paste in CRYPTOPP_ASSERT_JOIN
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/misc.h b/misc.h
index 49a498aa..05ff6d73 100644
--- a/misc.h
+++ b/misc.h
@@ -156,8 +156,9 @@ struct CompileAssert
static char dummy[2*b-1];
};
-#define CRYPTOPP_COMPILE_ASSERT(assertion) \
- CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, (__LINE__-1))
+#define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
+#define CRYPTOPP_ASSERT_JOIN(X, Y) CRYPTOPP_DO_ASSERT_JOIN(X, Y)
+#define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
#if defined(CRYPTOPP_EXPORTS) || defined(CRYPTOPP_IMPORTS)
# define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance)
@@ -173,9 +174,6 @@ struct CompileAssert
# endif // GCC or Clang
#endif
-#define CRYPTOPP_ASSERT_JOIN(X, Y) CRYPTOPP_DO_ASSERT_JOIN(X, Y)
-#define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
-
#endif // CRYPTOPP_DOXYGEN_PROCESSING
// ************** count elements in an array ***************