disable invariant_check functions when invariant checks are disabled

This commit is contained in:
Arvid Norberg
2013-02-25 04:13:46 +00:00
parent 775cf5570a
commit a0caa0f4b2
28 changed files with 38 additions and 36 deletions

View File

@@ -5573,7 +5573,7 @@ namespace libtorrent
setup_send();
}
#ifdef TORRENT_DEBUG
#if defined TORRENT_DEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS
struct peer_count_t
{
peer_count_t(): num_peers(0), num_peers_with_timeouts(0), num_peers_with_nowant(0), num_not_requested(0) {}