MongoDB C++ Driver  mongocxx-3.0.2
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_EXTRA")
29 #undef MONGOCXX_VERSION_EXTRA
30 #pragma push_macro("MONGOCXX_VERSION_MAJOR")
31 #undef MONGOCXX_VERSION_MAJOR
32 #pragma push_macro("MONGOCXX_VERSION_MINOR")
33 #undef MONGOCXX_VERSION_MINOR
34 #pragma push_macro("MONGOCXX_VERSION_PATCH")
35 #undef MONGOCXX_VERSION_PATCH
36 
37 // export.hpp (generated by cmake)
38 #pragma push_macro("MONGOCXX_API_H")
39 #undef MONGOCXX_API_H
40 #pragma push_macro("MONGOCXX_API")
41 #undef MONGOCXX_API
42 #pragma push_macro("MONGOCXX_PRIVATE")
43 #undef MONGOCXX_PRIVATE
44 #pragma push_macro("MONGOCXX_DEPRECATED")
45 #undef MONGOCXX_DEPRECATED
46 #pragma push_macro("MONGOCXX_DEPRECATED_EXPORT")
47 #undef MONGOCXX_DEPRECATED_EXPORT
48 #pragma push_macro("MONGOCXX_DEPRECATED_NO_EXPORT")
49 #undef MONGOCXX_DEPRECATED_NO_EXPORT
50 #pragma push_macro("DEFINE_NO_DEPRECATED")
51 #undef DEFINE_NO_DEPRECATED
52 #pragma push_macro("MONGOCXX_NO_DEPRECATED")
53 #undef MONGOCXX_NO_DEPRECATED
54 
55 #include <mongocxx/config/config.hpp>
56 #include <mongocxx/config/version.hpp>
57 #include <mongocxx/config/export.hpp>
58 #include <mongocxx/config/compiler.hpp>
59 
60 // TODO: Find a way to DRY this with BSONCXX_UNREACHABLE
61 #pragma push_macro("MONGOCXX_UNREACHABLE")
62 #undef MONGOCXX_UNREACHABLE
63 #define MONGOCXX_UNREACHABLE std::abort()