summaryrefslogtreecommitdiff
path: root/config_ns.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-03 19:40:53 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-03 19:40:53 -0400
commit589c25264a3b15fae101962f8a8a334a03c90075 (patch)
treed8493fa92058af7139d9eeb75358623e44a4d631 /config_ns.h
parenteff2b4f05a432a745d5912ec99f8c8ac85ebbaa6 (diff)
downloadcryptopp-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.h5
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