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_ns.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_ns.h')
-rw-r--r-- | config_ns.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config_ns.h b/config_ns.h index bf91c2fb..f78f4779 100644 --- a/config_ns.h +++ b/config_ns.h @@ -47,7 +47,7 @@ namespace CryptoPP { } #define NAMESPACE_BEGIN(x)
#define NAMESPACE_END
// Get Doxygen to generate better documentation for these typedefs
-#define DOCUMENTED_TYPEDEF(x, y) class y : public x {};
+#define DOCUMENTED_TYPEDEF(x, y) class y : public x {}
// Make "protected" "private" so the functions and members are not documented
#define protected private
@@ -55,7 +55,8 @@ namespace CryptoPP { } // Not Doxygen
#define NAMESPACE_BEGIN(x) namespace x {
#define NAMESPACE_END }
-#define DOCUMENTED_TYPEDEF(x, y) typedef x y;
+#define DOCUMENTED_TYPEDEF(x, y) typedef x y
+;
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|