diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-03 19:40:53 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-03 19:40:53 -0400 |
commit | 589c25264a3b15fae101962f8a8a334a03c90075 (patch) | |
tree | d8493fa92058af7139d9eeb75358623e44a4d631 /config_misc.h | |
parent | eff2b4f05a432a745d5912ec99f8c8ac85ebbaa6 (diff) | |
download | cryptopp-git-589c25264a3b15fae101962f8a8a334a03c90075.tar.gz |
Don't add semicolon to CRYPTOPP_CONSTANT abd DOCUMENTED_TYPEDEF (GH #889)
This issue is a recurring issue. Let's try fixing it in the #define this time.
Diffstat (limited to 'config_misc.h')
-rw-r--r-- | config_misc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config_misc.h b/config_misc.h index a6832968..50e123f9 100644 --- a/config_misc.h +++ b/config_misc.h @@ -145,13 +145,13 @@ #endif // CRYPTOPP_CXX11_CONSTEXPR
#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
-# define CRYPTOPP_CONSTANT(x) static const int x;
+# define CRYPTOPP_CONSTANT(x) static const int x
;
#elif defined(CRYPTOPP_CXX11_ENUM)
-# define CRYPTOPP_CONSTANT(x) enum : int { x };
+# define CRYPTOPP_CONSTANT(x) enum : int { x }
;
#elif defined(CRYPTOPP_CXX11_CONSTEXPR)
-# define CRYPTOPP_CONSTANT(x) constexpr static int x;
+# define CRYPTOPP_CONSTANT(x) constexpr static int x
;
#else
-# define CRYPTOPP_CONSTANT(x) static const int x;
+# define CRYPTOPP_CONSTANT(x) static const int x
;
#endif
// Warnings
|