MongoDB C++ Driver mongocxx-3.11.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// compiler.hpp
16#pragma push_macro("MONGOCXX_INLINE")
17#undef MONGOCXX_INLINE
18#pragma push_macro("MONGOCXX_CALL")
19#undef MONGOCXX_CALL
20
21// config.hpp (generated by CMake)
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// version.hpp (generated by CMake)
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_ABI_EXPORT_H")
41#if !defined(MONGOCXX_ABI_EXPORT_H)
42#pragma push_macro("MONGOCXX_ABI_EXPORT")
43#undef MONGOCXX_ABI_EXPORT
44#pragma push_macro("MONGOCXX_ABI_NO_EXPORT")
45#undef MONGOCXX_ABI_NO_EXPORT
46#pragma push_macro("MONGOCXX_ABI_CDECL")
47#undef MONGOCXX_ABI_CDECL
48#pragma push_macro("MONGOCXX_ABI_EXPORT_CDECL")
49#undef MONGOCXX_ABI_EXPORT_CDECL
50#pragma push_macro("MONGOCXX_API")
51#undef MONGOCXX_API
52#pragma push_macro("MONGOCXX_PRIVATE")
53#undef MONGOCXX_PRIVATE
54#pragma push_macro("MONGOCXX_DEPRECATED")
55#undef MONGOCXX_DEPRECATED
56#pragma push_macro("MONGOCXX_DEPRECATED_EXPORT")
57#undef MONGOCXX_DEPRECATED_EXPORT
58#pragma push_macro("MONGOCXX_DEPRECATED_NO_EXPORT")
59#undef MONGOCXX_DEPRECATED_NO_EXPORT
60#endif
61
63#include <mongocxx/config/config.hpp>
64#include <mongocxx/config/export.hpp>
65#include <mongocxx/config/version.hpp>
66
67// TODO: Find a way to DRY this with BSONCXX_UNREACHABLE
68#pragma push_macro("MONGOCXX_UNREACHABLE")
69#undef MONGOCXX_UNREACHABLE
70#define MONGOCXX_UNREACHABLE std::abort()
71
Provides macros for internal use.