diff options
author | Eric Milkie <milkie@10gen.com> | 2012-04-18 12:20:24 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-04-18 12:20:24 -0400 |
commit | 1fd8c6cb530c0564a58de4ab4b03dcd62f328b26 (patch) | |
tree | d7c775e3f1696958e05048456d809c6e1f9305eb /src/mongo/client/redef_macros.h | |
parent | 8448f0aba635205bce0b3846af2027f7f0245904 (diff) | |
download | mongo-1fd8c6cb530c0564a58de4ab4b03dcd62f328b26.tar.gz |
SERVER-5348 better macro handling; added more tests
Diffstat (limited to 'src/mongo/client/redef_macros.h')
-rw-r--r-- | src/mongo/client/redef_macros.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mongo/client/redef_macros.h b/src/mongo/client/redef_macros.h index 550d1b672c3..ceef2168d05 100644 --- a/src/mongo/client/redef_macros.h +++ b/src/mongo/client/redef_macros.h @@ -24,46 +24,63 @@ // util/allocator.h #pragma push_macro("malloc") +#undef malloc #define malloc MONGO_malloc #pragma push_macro("realloc") +#undef realloc #define realloc MONGO_realloc // util/assert_util.h #pragma push_macro("verify") +#undef verify #define verify MONGO_verify #pragma push_macro("dassert") +#undef dassert #define dassert MONGO_dassert #pragma push_macro("wassert") +#undef wassert #define wassert MONGO_wassert #pragma push_macro("massert") +#undef massert #define massert MONGO_massert #pragma push_macro("uassert") +#undef uassert #define uassert MONGO_uassert #pragma push_macro("DESTRUCTOR_GUARD") +#undef DESTRUCTOR_GUARD #define DESTRUCTOR_GUARD MONGO_DESTRUCTOR_GUARD // util/goodies.h #pragma push_macro("PRINT") +#undef PRINT #define PRINT MONGO_PRINT #pragma push_macro("PRINTFL") +#undef PRINTFL #define PRINTFL MONGO_PRINTFL // util/debug_util.h #pragma push_macro("DEV") +#undef DEV #define DEV MONGO_DEV #pragma push_macro("DEBUGGING") +#undef DEBUGGING #define DEBUGGING MONGO_DEBUGGING #pragma push_macro("SOMETIMES") +#undef SOMETIMES #define SOMETIMES MONGO_SOMETIMES #pragma push_macro("OCCASIONALLY") +#undef OCCASIONALLY #define OCCASIONALLY MONGO_OCCASIONALLY #pragma push_macro("RARELY") +#undef RARELY #define RARELY MONGO_RARELY #pragma push_macro("ONCE") +#undef ONCE #define ONCE MONGO_ONCE // util/log.h #pragma push_macro("LOG") +#undef LOG #define LOG MONGO_LOG |