made assert tied to the new TORRENT_DEBUG define. Fixed two include problems that surfaced as a result

This commit is contained in:
Arvid Norberg 2008-11-30 04:50:52 +00:00
parent 9126bef840
commit 6027f9f20c
3 changed files with 9 additions and 0 deletions

View File

@ -33,6 +33,11 @@ POSSIBILITY OF SUCH DAMAGE.
#ifndef TORRENT_ASSERT
#include "libtorrent/config.hpp"
#if !defined TORRENT_DEBUG
#define TORRENT_ASSERT(a) do {} while(false)
#else
#include <string>
#ifdef __GNUC__
@ -51,3 +56,5 @@ TORRENT_EXPORT void assert_fail(const char* expr, int line, char const* file, ch
#endif
#endif

View File

@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/assert.hpp"
#include "libtorrent/size_type.hpp"
#include <iosfwd>
#include <string>
namespace libtorrent
{

View File

@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "zlib.h"
#include <vector>
#include <string>
namespace
{