Mangrove
The C++ Object Document Mapper for MongoDB
prelude.hpp
1 // Copyright 2016 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/boson/config/compiler.hpp
16 #pragma push_macro("BOSON_INLINE")
17 #undef BOSON_INLINE
18 #pragma push_macro("BOSON_CALL")
19 #undef BOSON_CALL
20 
21 // src/boson/config/config.hpp.in
22 #pragma push_macro("BOSON_INLINE_NAMESPACE_BEGIN")
23 #undef BOSON_INLINE_NAMESPACE_BEGIN
24 #pragma push_macro("BOSON_INLINE_NAMESPACE_END")
25 #undef BOSON_INLINE_NAMESPACE_END
26 #pragma push_macro("BOSON_POLY_USE_MNMLSTC")
27 #undef BOSON_POLY_USE_MNMLSTC
28 #pragma push_macro("BOSON_POLY_USE_STD_EXPERIMENTAL")
29 #undef BOSON_POLY_USE_STD_EXPERIMENTAL
30 #pragma push_macro("BOSON_POLY_USE_SYSTEM_MNMLSTC")
31 #undef BOSON_POLY_USE_SYSTEM_MNMLSTC
32 #pragma push_macro("BOSON_POLY_USE_BOOST")
33 #undef BOSON_POLY_USE_BOOST
34 
35 // src/boson/config/version.hpp.in
36 #pragma push_macro("BOSON_VERSION_EXTRA")
37 #undef BOSON_VERSION_EXTRA
38 #pragma push_macro("BOSON_VERSION_MAJOR")
39 #undef BOSON_VERSION_MAJOR
40 #pragma push_macro("BOSON_VERSION_MINOR")
41 #undef BOSON_VERSION_MINOR
42 #pragma push_macro("BOSON_VERSION_PATCH")
43 #undef BOSON_VERSION_PATCH
44 
45 // export.hpp (generated by cmake)
46 #pragma push_macro("BOSON_API_H")
47 #undef BOSON_API_H
48 #pragma push_macro("BOSON_API")
49 #undef BOSON_API
50 #pragma push_macro("BOSON_PRIVATE")
51 #undef BOSON_PRIVATE
52 #pragma push_macro("BOSON_DEPRECATED")
53 #undef BOSON_DEPRECATED
54 #pragma push_macro("BOSON_DEPRECATED_EXPORT")
55 #undef BOSON_DEPRECATED_EXPORT
56 #pragma push_macro("BOSON_DEPRECATED_NO_EXPORT")
57 #undef BOSON_DEPRECATED_NO_EXPORT
58 #pragma push_macro("DEFINE_NO_DEPRECATED")
59 #undef DEFINE_NO_DEPRECATED
60 #pragma push_macro("BOSON_NO_DEPRECATED")
61 #undef BOSON_NO_DEPRECATED
62 
63 #include <boson/config/compiler.hpp>
64 #include <boson/config/config.hpp>
65 #include <boson/config/export.hpp>
66 #include <boson/config/version.hpp>
67 
68 #pragma push_macro("BOSON_UNREACHABLE")
69 #undef BOSON_UNREACHABLE
70 #define BOSON_UNREACHABLE std::abort()