MongoDB C++ Driver  mongocxx-3.1.0
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 // src/bsoncxx/config/config.hpp.in
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 // src/bsoncxx/config/version.hpp.in
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 // src/bsoncxx/types.hpp
46 #pragma push_macro("BSONCXX_ENUM")
47 #undef BSONCXX_ENUM
48 
49 // export.hpp (generated by cmake)
50 #pragma push_macro("BSONCXX_API_H")
51 #undef BSONCXX_API_H
52 #pragma push_macro("BSONCXX_API")
53 #undef BSONCXX_API
54 #pragma push_macro("BSONCXX_PRIVATE")
55 #undef BSONCXX_PRIVATE
56 #pragma push_macro("BSONCXX_DEPRECATED")
57 #undef BSONCXX_DEPRECATED
58 #pragma push_macro("BSONCXX_DEPRECATED_EXPORT")
59 #undef BSONCXX_DEPRECATED_EXPORT
60 #pragma push_macro("BSONCXX_DEPRECATED_NO_EXPORT")
61 #undef BSONCXX_DEPRECATED_NO_EXPORT
62 #pragma push_macro("DEFINE_NO_DEPRECATED")
63 #undef DEFINE_NO_DEPRECATED
64 #pragma push_macro("BSONCXX_NO_DEPRECATED")
65 #undef BSONCXX_NO_DEPRECATED
66 
67 #include <bsoncxx/config/config.hpp>
68 #include <bsoncxx/config/version.hpp>
69 #include <bsoncxx/config/export.hpp>
70 #include <bsoncxx/config/compiler.hpp>
71 
72 #pragma push_macro("BSONCXX_UNREACHABLE")
73 #undef BSONCXX_UNREACHABLE
74 #define BSONCXX_UNREACHABLE std::abort()