MongoDB  2.7.0
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 // util/allocator.h
25 #ifdef MONGO_MALLOC
26 #undef malloc
27 #pragma pop_macro("malloc")
28 #undef realloc
29 #pragma pop_macro("realloc")
30 #endif
31 
32 // util/assert_util.h
33 #undef dassert
34 #pragma pop_macro("dassert")
35 #undef wassert
36 #pragma pop_macro("wassert")
37 #undef massert
38 #pragma pop_macro("massert")
39 #undef uassert
40 #pragma pop_macro("uassert")
41 #undef verify
42 #pragma pop_macro("verify")
43 #undef invariant
44 #pragma pop_macro("invariant")
45 #undef DESTRUCTOR_GUARD
46 #pragma pop_macro("DESTRUCTOR_GUARD")
47 
48 // util/goodies.h
49 #undef PRINT
50 #pragma pop_macro("PRINT")
51 #undef PRINTFL
52 #pragma pop_macro("PRINTFL")
53 
54 // util/debug_util.h
55 #undef DEV
56 #pragma pop_macro("DEV")
57 #undef DEBUGGING
58 #pragma pop_macro("DEBUGGING")
59 #undef SOMETIMES
60 #pragma pop_macro("SOMETIMES")
61 #undef OCCASIONALLY
62 #pragma pop_macro("OCCASIONALLY")
63 #undef RARELY
64 #pragma pop_macro("RARELY")
65 #undef ONCE
66 #pragma pop_macro("ONCE")
67 
68 // util/log.h
69 #undef LOG
70 #pragma pop_macro("LOG")
71 
72 #undef MONGO_MACROS_PUSHED
73 #endif