MongoDB C++ Driver  legacy-1.1.2
undef_macros.h
Go to the documentation of this file.
1 
3 /* Copyright 2009 10gen Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 // If you define a new global un-prefixed macro, please add it here and in redef_macros
19 
20 // #pragma once // this file is intended to be processed multiple times
21 
22 #ifdef MONGO_MACROS_PUSHED
23 
24 #if defined(_WIN32)
25 #pragma pop_macro("min")
26 #pragma pop_macro("max")
27 #pragma pop_macro("NOMINMAX")
28 #endif
29 
30 // bson/inline_decls.h
31 #undef NOINLINE_DECL
32 #pragma pop_macro("NOINLINE_DECL")
33 #undef PACKED_DECL
34 #pragma pop_macro("PACKED_DECL")
35 
36 // util/assert_util.h
37 #undef wassert
38 #pragma pop_macro("wassert")
39 #undef massert
40 #pragma pop_macro("massert")
41 #undef uassert
42 #pragma pop_macro("uassert")
43 #undef verify
44 #pragma pop_macro("verify")
45 #undef invariant
46 #pragma pop_macro("invariant")
47 #undef invariantOK
48 #pragma pop_macro("invariantOK")
49 #undef DESTRUCTOR_GUARD
50 #pragma pop_macro("DESTRUCTOR_GUARD")
51 
52 #undef MONGO_MACROS_PUSHED
53 #endif