MongoDB C++ Driver mongocxx-4.0.0
Loading...
Searching...
No Matches
prelude.hpp
Go to the documentation of this file.
1// Copyright 2009-present 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// version.hpp (generated by CMake)
16#pragma push_macro("MONGOCXX_VERSION_STRING")
17#undef MONGOCXX_VERSION_STRING
18#pragma push_macro("MONGOCXX_VERSION_EXTRA")
19#undef MONGOCXX_VERSION_EXTRA
20#pragma push_macro("MONGOCXX_VERSION_MAJOR")
21#undef MONGOCXX_VERSION_MAJOR
22#pragma push_macro("MONGOCXX_VERSION_MINOR")
23#undef MONGOCXX_VERSION_MINOR
24#pragma push_macro("MONGOCXX_VERSION_PATCH")
25#undef MONGOCXX_VERSION_PATCH
26
27// export.hpp (generated by CMake)
28#pragma push_macro("MONGOCXX_ABI_EXPORT_H")
29#undef MONGOCXX_ABI_EXPORT_H
30#pragma push_macro("MONGOCXX_ABI_EXPORT")
31#undef MONGOCXX_ABI_EXPORT
32#pragma push_macro("MONGOCXX_ABI_NO_EXPORT")
33#undef MONGOCXX_ABI_NO_EXPORT
34#pragma push_macro("MONGOCXX_ABI_CDECL")
35#undef MONGOCXX_ABI_CDECL
36#pragma push_macro("MONGOCXX_ABI_EXPORT_CDECL")
37#undef MONGOCXX_ABI_EXPORT_CDECL
38#pragma push_macro("MONGOCXX_DEPRECATED")
39#undef MONGOCXX_DEPRECATED
40
42#include <mongocxx/config/config.hpp>
43#include <mongocxx/config/export.hpp>
44#include <mongocxx/config/version.hpp>
45
46// TODO: Find a way to DRY this with BSONCXX_UNREACHABLE
47#pragma push_macro("MONGOCXX_UNREACHABLE")
48#undef MONGOCXX_UNREACHABLE
49#define MONGOCXX_UNREACHABLE std::abort()
50
Provides macros for internal use.