diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:35 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-03-26 12:58:52 -0400 |
commit | bd6d0c99195e324e14390205e2bc6ff88c01e365 (patch) | |
tree | f9306b37b7d3302b4dd6e5f628fcf9886a09cf15 /src/mongo/pch.h | |
parent | a56eef7bd9a5d390182ea64118e11420b052a380 (diff) | |
download | mongo-bd6d0c99195e324e14390205e2bc6ff88c01e365.tar.gz |
replace assert with verify SERVER-1259
Diffstat (limited to 'src/mongo/pch.h')
-rw-r--r-- | src/mongo/pch.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/pch.h b/src/mongo/pch.h index 9e5be0fbcf9..f2c82e9eec5 100644 --- a/src/mongo/pch.h +++ b/src/mongo/pch.h @@ -89,8 +89,6 @@ #include <boost/thread/condition.hpp> #include <boost/thread/recursive_mutex.hpp> #include <boost/thread/xtime.hpp> -#undef assert -#define assert MONGO_assert namespace mongo { @@ -145,7 +143,7 @@ namespace mongo { // TODO: Rework the headers so we don't need this craziness #include "bson/inline_decls.h" -#define MONGO_assert(_Expression) (void)( MONGO_likely(!!(_Expression)) || (mongo::asserted(#_Expression, __FILE__, __LINE__), 0) ) +#define MONGO_verify(_Expression) (void)( MONGO_likely(!!(_Expression)) || (mongo::asserted(#_Expression, __FILE__, __LINE__), 0) ) #include "util/debug_util.h" #include "util/goodies.h" |