MongoDB  2.7.0
redef_macros.h
Go to the documentation of this file.
1 
6 /* Copyright 2009 10gen Inc.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 // If you define a new global un-prefixed macro, please add it here and in undef_macros
22 
23 #define MONGO_MACROS_PUSHED 1
24 
25 // util/allocator.h
26 #ifdef MONGO_MALLOC
27 #pragma push_macro("malloc")
28 #undef malloc
29 #define malloc MONGO_malloc
30 #pragma push_macro("realloc")
31 #undef realloc
32 #define realloc MONGO_realloc
33 #endif
34 
35 // util/assert_util.h
36 #pragma push_macro("verify")
37 #undef verify
38 #define verify MONGO_verify
39 #pragma push_macro("invariant")
40 #undef invariant
41 #define invariant MONGO_invariant
42 #pragma push_macro("dassert")
43 #undef dassert
44 #define dassert MONGO_dassert
45 #pragma push_macro("wassert")
46 #undef wassert
47 #define wassert MONGO_wassert
48 #pragma push_macro("massert")
49 #undef massert
50 #define massert MONGO_massert
51 #pragma push_macro("uassert")
52 #undef uassert
53 #define uassert MONGO_uassert
54 #pragma push_macro("DESTRUCTOR_GUARD")
55 #undef DESTRUCTOR_GUARD
56 #define DESTRUCTOR_GUARD MONGO_DESTRUCTOR_GUARD
57 
58 // util/goodies.h
59 #pragma push_macro("PRINT")
60 #undef PRINT
61 #define PRINT MONGO_PRINT
62 #pragma push_macro("PRINTFL")
63 #undef PRINTFL
64 #define PRINTFL MONGO_PRINTFL
65 
66 // util/debug_util.h
67 #pragma push_macro("DEV")
68 #undef DEV
69 #define DEV MONGO_DEV
70 #pragma push_macro("DEBUGGING")
71 #undef DEBUGGING
72 #define DEBUGGING MONGO_DEBUGGING
73 #pragma push_macro("SOMETIMES")
74 #undef SOMETIMES
75 #define SOMETIMES MONGO_SOMETIMES
76 #pragma push_macro("OCCASIONALLY")
77 #undef OCCASIONALLY
78 #define OCCASIONALLY MONGO_OCCASIONALLY
79 #pragma push_macro("RARELY")
80 #undef RARELY
81 #define RARELY MONGO_RARELY
82 #pragma push_macro("ONCE")
83 #undef ONCE
84 #define ONCE MONGO_ONCE
85 
86 // util/log.h
87 #pragma push_macro("LOG")
88 #undef LOG
89 #define LOG MONGO_LOG
90 
91