summaryrefslogtreecommitdiff
path: root/src/mongo/pch.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-12-30 18:40:38 -0500
committerdwight <dwight@10gen.com>2011-12-30 18:40:38 -0500
commit279b9e5185c5daaefc75343aaca06e4efd8a4951 (patch)
treec25c76aeffe260bce0a9430cbdf1d956017232b5 /src/mongo/pch.h
parentf1f19c50eecfc34ba3c75f20f3ee04e49e16e721 (diff)
downloadmongo-279b9e5185c5daaefc75343aaca06e4efd8a4951.tar.gz
boost asserts enable on _DEBUG and off on release
Diffstat (limited to 'src/mongo/pch.h')
-rw-r--r--src/mongo/pch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/pch.h b/src/mongo/pch.h
index ecb98e17146..4a3000ed1eb 100644
--- a/src/mongo/pch.h
+++ b/src/mongo/pch.h
@@ -22,6 +22,11 @@
#define MONGO_PCH_H
#if defined(MONGO_EXPOSE_MACROS)
+# if defined(_DEBUG)
+# define BOOST_ENABLE_ASSERT_HANDLER 1
+# else
+# define BOOST_DISABLE_ASSERTS 1
+# endif
# define JS_C_STRINGS_ARE_UTF8
# undef SUPPORT_UCP
# define SUPPORT_UCP