From d21243dc9febc1c1178ef1d2a88716de5b9d7054 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 27 Mar 2013 23:46:13 +0000 Subject: [PATCH] make release asserts build --- include/libtorrent/aux_/session_impl.hpp | 2 +- src/utp_stream.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index 78f2a5fdb..127aacd50 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -229,7 +229,7 @@ namespace libtorrent torrent*, void*)> ext); void add_ses_extension(boost::shared_ptr ext); #endif -#ifdef TORRENT_DEBUG +#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS bool has_peer(peer_connection const* p) const { TORRENT_ASSERT(is_network_thread()); diff --git a/src/utp_stream.cpp b/src/utp_stream.cpp index f8939db86..ebc8df974 100644 --- a/src/utp_stream.cpp +++ b/src/utp_stream.cpp @@ -1667,7 +1667,7 @@ bool utp_socket_impl::send_pkt(int flags) boost::uint8_t* ptr = NULL; utp_header* h = NULL; -#ifdef TORRENT_DEBUG +#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS bool stack_alloced = false; #endif @@ -1684,7 +1684,7 @@ bool utp_socket_impl::send_pkt(int flags) } else { -#ifdef TORRENT_DEBUG +#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS stack_alloced = true; #endif TORRENT_ASSERT(force);