From 40c343be93767132e24c08ef6cbe6a3b87b247e2 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Tue, 28 Jun 2016 13:42:18 -0400 Subject: [PATCH] fixed macro assert around assert_torrent_refcount (#868) --- src/disk_io_thread.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index a5fdf1f24..1793aa945 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -1484,7 +1484,7 @@ namespace libtorrent { INVARIANT_CHECK; -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1604,7 +1604,7 @@ namespace libtorrent { INVARIANT_CHECK; -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1711,7 +1711,7 @@ namespace libtorrent void disk_io_thread::async_hash(piece_manager* storage, int piece, int flags , boost::function handler, void* requester) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1756,7 +1756,7 @@ namespace libtorrent void disk_io_thread::async_move_storage(piece_manager* storage, std::string const& p, int flags , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1785,7 +1785,7 @@ namespace libtorrent , int const options , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1838,7 +1838,7 @@ namespace libtorrent , std::vector& links , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1860,7 +1860,7 @@ namespace libtorrent void disk_io_thread::async_rename_file(piece_manager* storage, int index, std::string const& name , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1913,7 +1913,7 @@ namespace libtorrent void disk_io_thread::async_cache_piece(piece_manager* storage, int piece , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1930,7 +1930,7 @@ namespace libtorrent void disk_io_thread::async_finalize_file(piece_manager* storage, int file , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1948,7 +1948,7 @@ namespace libtorrent void disk_io_thread::async_flush_piece(piece_manager* storage, int piece , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -1974,7 +1974,7 @@ namespace libtorrent , std::vector const& prios , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount(); @@ -2030,7 +2030,7 @@ namespace libtorrent void disk_io_thread::async_clear_piece(piece_manager* storage, int index , boost::function handler) { -#ifndef TORRENT_DISABLE_INVARIANT_CHECKS +#if TORRENT_USE_ASSERTS // the caller must increment the torrent refcount before // issuing an async disk request storage->assert_torrent_refcount();