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// util.hpp
16#pragma push_macro("BSONCXX_CONCAT")
17#undef BSONCXX_CONCAT
18#pragma push_macro("BSONCXX_CONCAT_IMPL")
19#undef BSONCXX_CONCAT_IMPL
20#pragma push_macro("BSONCXX_STRINGIFY")
21#undef BSONCXX_STRINGIFY
22#pragma push_macro("BSONCXX_STRINGIFY_IMPL")
23#undef BSONCXX_STRINGIFY_IMPL
24#pragma push_macro("BSONCXX_PRAGMA")
25#undef BSONCXX_PRAGMA
26#pragma push_macro("_bsoncxxPragma")
27#undef _bsoncxxPragma
28#pragma push_macro("BSONCXX_FORCE_SEMICOLON")
29#undef BSONCXX_FORCE_SEMICOLON
30#pragma push_macro("BSONCXX_RETURNS")
31#undef BSONCXX_RETURNS
32#pragma push_macro("bsoncxx_cxx14_constexpr")
33#undef bsoncxx_cxx14_constexpr
34#pragma push_macro("BSONCXX_DISABLE_WARNING")
35#undef BSONCXX_DISABLE_WARNING
36#pragma push_macro("BSONCXX_PUSH_WARNINGS")
37#undef BSONCXX_PUSH_WARNINGS
38#pragma push_macro("BSONCXX_POP_WARNINGS")
39#undef BSONCXX_POP_WARNINGS
40#pragma push_macro("_bsoncxxDisableWarningImpl_for_GCC")
41#undef _bsoncxxDisableWarningImpl_for_GCC
42#pragma push_macro("_bsoncxxDisableWarningImpl_for_Clang")
43#undef _bsoncxxDisableWarningImpl_for_Clang
44#pragma push_macro("_bsoncxxDisableWarningImpl_for_MSVC")
45#undef _bsoncxxDisableWarningImpl_for_MSVC
46#pragma push_macro("_bsoncxxDisableWarningImpl_for_GNU")
47#undef _bsoncxxDisableWarningImpl_for_GNU
48#pragma push_macro("BSONCXX_FWD")
49#undef BSONCXX_FWD
50
51// compiler.hpp
52#pragma push_macro("BSONCXX_IF_MSVC")
53#undef BSONCXX_IF_MSVC
54#pragma push_macro("BSONCXX_IF_GCC")
55#undef BSONCXX_IF_GCC
56#pragma push_macro("BSONCXX_IF_CLANG")
57#undef BSONCXX_IF_CLANG
58#pragma push_macro("BSONCXX_IF_GNU_LIKE")
59#undef BSONCXX_IF_GNU_LIKE
60
61// config.hpp (generated by CMake)
62#pragma push_macro("BSONCXX_POLY_USE_IMPLS")
63#undef BSONCXX_POLY_USE_IMPLS
64#pragma push_macro("BSONCXX_POLY_USE_STD")
65#undef BSONCXX_POLY_USE_STD
66
67// version.hpp (generated by CMake)
68#pragma push_macro("BSONCXX_VERSION_EXTRA")
69#undef BSONCXX_VERSION_EXTRA
70#pragma push_macro("BSONCXX_VERSION_MAJOR")
71#undef BSONCXX_VERSION_MAJOR
72#pragma push_macro("BSONCXX_VERSION_MINOR")
73#undef BSONCXX_VERSION_MINOR
74#pragma push_macro("BSONCXX_VERSION_PATCH")
75#undef BSONCXX_VERSION_PATCH
76
77// export.hpp (generated by CMake)
78#pragma push_macro("BSONCXX_ABI_EXPORT_H")
79#undef BSONCXX_ABI_EXPORT_H
80#pragma push_macro("BSONCXX_ABI_EXPORT")
81#undef BSONCXX_ABI_EXPORT
82#pragma push_macro("BSONCXX_ABI_NO_EXPORT")
83#undef BSONCXX_ABI_NO_EXPORT
84#pragma push_macro("BSONCXX_ABI_CDECL")
85#undef BSONCXX_ABI_CDECL
86#pragma push_macro("BSONCXX_ABI_EXPORT_CDECL")
87#undef BSONCXX_ABI_EXPORT_CDECL
88#pragma push_macro("BSONCXX_DEPRECATED")
89#undef BSONCXX_DEPRECATED
90
92//
94#include <bsoncxx/config/config.hpp>
95#include <bsoncxx/config/export.hpp>
96#include <bsoncxx/config/version.hpp>
97
98#pragma push_macro("BSONCXX_UNREACHABLE")
99#undef BSONCXX_UNREACHABLE
100#define BSONCXX_UNREACHABLE std::abort()
101
Provides macros for internal use.
Provides macros for internal use.