forked from premiere/premiere-libtorrent
make release asserts build
This commit is contained in:
parent
aad5257dbf
commit
d21243dc9f
|
@ -229,7 +229,7 @@ namespace libtorrent
|
||||||
torrent*, void*)> ext);
|
torrent*, void*)> ext);
|
||||||
void add_ses_extension(boost::shared_ptr<plugin> ext);
|
void add_ses_extension(boost::shared_ptr<plugin> ext);
|
||||||
#endif
|
#endif
|
||||||
#ifdef TORRENT_DEBUG
|
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
|
||||||
bool has_peer(peer_connection const* p) const
|
bool has_peer(peer_connection const* p) const
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(is_network_thread());
|
TORRENT_ASSERT(is_network_thread());
|
||||||
|
|
|
@ -1667,7 +1667,7 @@ bool utp_socket_impl::send_pkt(int flags)
|
||||||
boost::uint8_t* ptr = NULL;
|
boost::uint8_t* ptr = NULL;
|
||||||
utp_header* h = NULL;
|
utp_header* h = NULL;
|
||||||
|
|
||||||
#ifdef TORRENT_DEBUG
|
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
|
||||||
bool stack_alloced = false;
|
bool stack_alloced = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1684,7 +1684,7 @@ bool utp_socket_impl::send_pkt(int flags)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef TORRENT_DEBUG
|
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
|
||||||
stack_alloced = true;
|
stack_alloced = true;
|
||||||
#endif
|
#endif
|
||||||
TORRENT_ASSERT(force);
|
TORRENT_ASSERT(force);
|
||||||
|
|
Loading…
Reference in New Issue