diff options
author | dwight <dwight@10gen.com> | 2011-12-30 18:40:38 -0500 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-12-30 18:40:38 -0500 |
commit | 279b9e5185c5daaefc75343aaca06e4efd8a4951 (patch) | |
tree | c25c76aeffe260bce0a9430cbdf1d956017232b5 /src/mongo/pch.h | |
parent | f1f19c50eecfc34ba3c75f20f3ee04e49e16e721 (diff) | |
download | mongo-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.h | 5 |
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 |