Fix macro paste in CRYPTOPP_ASSERT_JOIN
parent
388a2e6ded
commit
769643bbe1
8
misc.h
8
misc.h
|
|
@ -156,8 +156,9 @@ struct CompileAssert
|
||||||
static char dummy[2*b-1];
|
static char dummy[2*b-1];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CRYPTOPP_COMPILE_ASSERT(assertion) \
|
#define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
|
||||||
CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, (__LINE__-1))
|
#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)
|
#if defined(CRYPTOPP_EXPORTS) || defined(CRYPTOPP_IMPORTS)
|
||||||
# define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance)
|
# define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance)
|
||||||
|
|
@ -173,9 +174,6 @@ struct CompileAssert
|
||||||
# endif // GCC or Clang
|
# endif // GCC or Clang
|
||||||
#endif
|
#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
|
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|
||||||
|
|
||||||
// ************** count elements in an array ***************
|
// ************** count elements in an array ***************
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue