diff options
author | Dwight <dmerriman@gmail.com> | 2008-02-14 12:50:13 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-02-14 12:50:13 -0500 |
commit | e895ee68441ba121708bc468974dd94a5d0f8794 (patch) | |
tree | 9b3a50c01c379b83e393e268323daa3fd5fa0b3e /stdafx.h | |
parent | 8b6fb113853726ba7b5e1f47900c3a2069826174 (diff) | |
download | mongo-e895ee68441ba121708bc468974dd94a5d0f8794.tar.gz |
parent ptr fix (btree)
Diffstat (limited to 'stdafx.h')
-rw-r--r-- | stdafx.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,12 +18,16 @@ public: };
void asserted(const char *msg, const char *file, unsigned line);
+void wasserted(const char *msg, const char *file, unsigned line);
#define assert(_Expression) (void)( (!!(_Expression)) || (asserted(#_Expression, __FILE__, __LINE__), 0) )
#define xassert(_Expression) (void)( (!!(_Expression)) || (asserted(#_Expression, __FILE__, __LINE__), 0) )
#define yassert 1
+/* warning only - keeps going */
+#define wassert(_Expression) (void)( (!!(_Expression)) || (wasserted(#_Expression, __FILE__, __LINE__), 0) )
+
#include <stdio.h>
#include <sstream>
|