summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2008-02-14 12:50:13 -0500
committerDwight <dmerriman@gmail.com>2008-02-14 12:50:13 -0500
commite895ee68441ba121708bc468974dd94a5d0f8794 (patch)
tree9b3a50c01c379b83e393e268323daa3fd5fa0b3e /stdafx.h
parent8b6fb113853726ba7b5e1f47900c3a2069826174 (diff)
downloadmongo-e895ee68441ba121708bc468974dd94a5d0f8794.tar.gz
parent ptr fix (btree)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdafx.h b/stdafx.h
index f362852a261..6d55c8d2e0a 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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>