Security Scol plugin
config_ns.h
Go to the documentation of this file.
1// config_ns.h - written and placed in public domain by Jeffrey Walton
2// the bits that make up this source file are from the
3// library's monolithic config.h.
4
21
22#ifndef CRYPTOPP_CONFIG_NAMESPACE_H
23#define CRYPTOPP_CONFIG_NAMESPACE_H
24
25// namespace support is now required
26#ifdef NO_NAMESPACE
27# error namespace support is now required
28#endif
29
30#ifdef CRYPTOPP_DOXYGEN_PROCESSING
31
48namespace CryptoPP { }
49
50// Bring in the symbols found in the weak namespace; and fold Weak1 into Weak
51#define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
52#define Weak1 Weak
53// Avoid putting "CryptoPP::" in front of everything in Doxygen output
54#define CryptoPP
55#define NAMESPACE_BEGIN(x)
56#define NAMESPACE_END
57// Get Doxygen to generate better documentation for these typedefs
58#define DOCUMENTED_TYPEDEF(x, y) class y : public x {}
59// Make "protected" "private" so the functions and members are not documented
60#define protected private
61
62#else
63// Not Doxygen
64#define NAMESPACE_BEGIN(x) namespace x {
65#define NAMESPACE_END }
66#define DOCUMENTED_TYPEDEF(x, y) typedef x y
67
68#endif // CRYPTOPP_DOXYGEN_PROCESSING
69
70#define ANONYMOUS_NAMESPACE_BEGIN namespace {
71#define ANONYMOUS_NAMESPACE_END }
72#define USING_NAMESPACE(x) using namespace x;
73#define DOCUMENTED_NAMESPACE_BEGIN(x) namespace x {
74#define DOCUMENTED_NAMESPACE_END }
75
76#endif // CRYPTOPP_CONFIG_NAMESPACE_H