From 524e116277b53ca6a27413d8a51bac3a6a235a59 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 14 Aug 2011 23:30:40 +0000 Subject: [PATCH] fix production asserts build --- Jamfile | 2 +- include/libtorrent/assert.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jamfile b/Jamfile index e10e24b19..106f8c9f4 100755 --- a/Jamfile +++ b/Jamfile @@ -252,7 +252,7 @@ feature.compose off : TORRENT_DISABLE_FULL_STATS ; feature asserts : auto on off production system : composite propagated ; feature.compose on : TORRENT_RELEASE_ASSERTS=1 ; -feature.compose production : TORRENT_PRODUCTION_ASSERTS=1 ; +feature.compose production : TORRENT_PRODUCTION_ASSERTS=1 TORRENT_RELEASE_ASSERTS=1 ; feature.compose off : TORRENT_NO_ASSERTS=1 ; feature.compose system : TORRENT_USE_SYSTEM_ASSERTS=1 ; diff --git a/include/libtorrent/assert.hpp b/include/libtorrent/assert.hpp index df455e333..375f91ee5 100644 --- a/include/libtorrent/assert.hpp +++ b/include/libtorrent/assert.hpp @@ -34,7 +34,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/config.hpp" -#if (!defined TORRENT_DEBUG && !TORRENT_PRODUCTION_ASSERTS && !TORRENT_RELEASE_ASSERTS) \ +#if (!defined TORRENT_DEBUG && !TORRENT_RELEASE_ASSERTS) \ || TORRENT_NO_ASSERTS #define TORRENT_ASSERT(a) do {} while(false) #define TORRENT_ASSERT_VAL(a, b) do {} while(false)