fixed compiler flags in pkg-config file and made header files not depend on the NDEBUG define

This commit is contained in:
Arvid Norberg
2008-11-29 21:33:21 +00:00
parent d1a2b774e6
commit 09b3a865ef
50 changed files with 227 additions and 217 deletions

View File

@@ -44,7 +44,7 @@ namespace libtorrent
, m_half_open_limit(0)
, m_abort(false)
, m_timer(ios)
#ifndef NDEBUG
#ifdef TORRENT_DEBUG
, m_in_timeout_function(false)
#endif
{
@@ -141,7 +141,7 @@ namespace libtorrent
int connection_queue::limit() const
{ return m_half_open_limit; }
#ifndef NDEBUG
#ifdef TORRENT_DEBUG
void connection_queue::check_invariant() const
{
@@ -213,7 +213,7 @@ namespace libtorrent
}
}
#ifndef NDEBUG
#ifdef TORRENT_DEBUG
struct function_guard
{
function_guard(bool& v): val(v) { TORRENT_ASSERT(!val); val = true; }
@@ -228,7 +228,7 @@ namespace libtorrent
mutex_t::scoped_lock l(m_mutex);
INVARIANT_CHECK;
#ifndef NDEBUG
#ifdef TORRENT_DEBUG
function_guard guard_(m_in_timeout_function);
#endif