MongoDB C++ Driver  mongocxx-3.9.0
All Classes Namespaces Functions Typedefs Enumerations Enumerator Friends Pages
prelude.hpp
1 // Copyright 2014 MongoDB Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 // compiler.hpp
16 #pragma push_macro("BSONCXX_INLINE")
17 #undef BSONCXX_INLINE
18 #pragma push_macro("BSONCXX_CALL")
19 #undef BSONCXX_CALL
20 
21 // config.hpp (generated by CMake)
22 #pragma push_macro("BSONCXX_INLINE_NAMESPACE_BEGIN")
23 #undef BSONCXX_INLINE_NAMESPACE_BEGIN
24 #pragma push_macro("BSONCXX_INLINE_NAMESPACE_END")
25 #undef BSONCXX_INLINE_NAMESPACE_END
26 #pragma push_macro("BSONCXX_POLY_USE_MNMLSTC")
27 #undef BSONCXX_POLY_USE_MNMLSTC
28 #pragma push_macro("BSONCXX_POLY_USE_STD_EXPERIMENTAL")
29 #undef BSONCXX_POLY_USE_STD_EXPERIMENTAL
30 #pragma push_macro("BSONCXX_POLY_USE_SYSTEM_MNMLSTC")
31 #undef BSONCXX_POLY_USE_SYSTEM_MNMLSTC
32 #pragma push_macro("BSONCXX_POLY_USE_BOOST")
33 #undef BSONCXX_POLY_USE_BOOST
34 
35 // version.hpp (generated by CMake)
36 #pragma push_macro("BSONCXX_VERSION_EXTRA")
37 #undef BSONCXX_VERSION_EXTRA
38 #pragma push_macro("BSONCXX_VERSION_MAJOR")
39 #undef BSONCXX_VERSION_MAJOR
40 #pragma push_macro("BSONCXX_VERSION_MINOR")
41 #undef BSONCXX_VERSION_MINOR
42 #pragma push_macro("BSONCXX_VERSION_PATCH")
43 #undef BSONCXX_VERSION_PATCH
44 
45 // export.hpp (generated by CMake)
46 #pragma push_macro("BSONCXX_API_H")
47 #undef BSONCXX_API_H
48 #pragma push_macro("BSONCXX_API")
49 #undef BSONCXX_API
50 #pragma push_macro("BSONCXX_PRIVATE")
51 #undef BSONCXX_PRIVATE
52 #pragma push_macro("BSONCXX_DEPRECATED")
53 #undef BSONCXX_DEPRECATED
54 #pragma push_macro("BSONCXX_DEPRECATED_EXPORT")
55 #undef BSONCXX_DEPRECATED_EXPORT
56 #pragma push_macro("BSONCXX_DEPRECATED_NO_EXPORT")
57 #undef BSONCXX_DEPRECATED_NO_EXPORT
58 #pragma push_macro("DEFINE_NO_DEPRECATED")
59 #undef DEFINE_NO_DEPRECATED
60 #pragma push_macro("BSONCXX_NO_DEPRECATED")
61 #undef BSONCXX_NO_DEPRECATED
62 
63 #include <bsoncxx/config/compiler.hpp>
64 #include <bsoncxx/config/config.hpp>
65 #include <bsoncxx/config/export.hpp>
66 #include <bsoncxx/config/version.hpp>
67 
68 #pragma push_macro("BSONCXX_UNREACHABLE")
69 #undef BSONCXX_UNREACHABLE
70 #define BSONCXX_UNREACHABLE std::abort()
71 
72 // CXX-2769: out-of-place, but remains for backward compatibility.
73 #pragma push_macro("BSONCXX_ENUM")
74 #undef BSONCXX_ENUM
75 
76 // Doxygen does not account for generated header files.
77 // Document globally applicable macros and namespaces here.
78 
83 
88