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 // src/mongocxx/config/compiler.hpp
16 #pragma push_macro("MONGOCXX_INLINE")
17 #undef MONGOCXX_INLINE
18 #pragma push_macro("MONGOCXX_CALL")
19 #undef MONGOCXX_CALL
20 
21 // src/mongocxx/config/config.hpp.in
22 #pragma push_macro("MONGOCXX_INLINE_NAMESPACE_BEGIN")
23 #undef MONGOCXX_INLINE_NAMESPACE_BEGIN
24 #pragma push_macro("MONGOCXX_INLINE_NAMESPACE_END")
25 #undef MONGOCXX_INLINE_NAMESPACE_END
26 
27 // src/mongocxx/config/version.hpp.in
28 #pragma push_macro("MONGOCXX_VERSION_STRING")
29 #undef MONGOCXX_VERSION_STRING
30 #pragma push_macro("MONGOCXX_VERSION_EXTRA")
31 #undef MONGOCXX_VERSION_EXTRA
32 #pragma push_macro("MONGOCXX_VERSION_MAJOR")
33 #undef MONGOCXX_VERSION_MAJOR
34 #pragma push_macro("MONGOCXX_VERSION_MINOR")
35 #undef MONGOCXX_VERSION_MINOR
36 #pragma push_macro("MONGOCXX_VERSION_PATCH")
37 #undef MONGOCXX_VERSION_PATCH
38 
39 // export.hpp (generated by cmake)
40 #pragma push_macro("MONGOCXX_API_H")
41 #undef MONGOCXX_API_H
42 #pragma push_macro("MONGOCXX_API")
43 #undef MONGOCXX_API
44 #pragma push_macro("MONGOCXX_PRIVATE")
45 #undef MONGOCXX_PRIVATE
46 #pragma push_macro("MONGOCXX_DEPRECATED")
47 #undef MONGOCXX_DEPRECATED
48 #pragma push_macro("MONGOCXX_DEPRECATED_EXPORT")
49 #undef MONGOCXX_DEPRECATED_EXPORT
50 #pragma push_macro("MONGOCXX_DEPRECATED_NO_EXPORT")
51 #undef MONGOCXX_DEPRECATED_NO_EXPORT
52 #pragma push_macro("DEFINE_NO_DEPRECATED")
53 #undef DEFINE_NO_DEPRECATED
54 #pragma push_macro("MONGOCXX_NO_DEPRECATED")
55 #undef MONGOCXX_NO_DEPRECATED
56 
57 #include <mongocxx/config/config.hpp>
58 #include <mongocxx/config/version.hpp>
59 #include <mongocxx/config/export.hpp>
60 #include <mongocxx/config/compiler.hpp>
61 
62 // TODO: Find a way to DRY this with BSONCXX_UNREACHABLE
63 #pragma push_macro("MONGOCXX_UNREACHABLE")
64 #undef MONGOCXX_UNREACHABLE
65 #define MONGOCXX_UNREACHABLE std::abort()