fixed up link test to make sure library and client are using the same configuration, also factored out common code from session constructor

This commit is contained in:
Arvid Norberg
2010-10-24 00:44:07 +00:00
parent 9a461c5e46
commit 84d81d3a82
5 changed files with 181 additions and 102 deletions

View File

@@ -76,6 +76,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/instantiate_connection.hpp"
#include "libtorrent/peer_info.hpp"
#include "libtorrent/settings.hpp"
#include "libtorrent/build_config.hpp"
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
#endif
@@ -593,6 +594,12 @@ namespace aux {
#endif
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_logger) << "libtorrent configuration: " << TORRENT_CFG_STRING << "\n"
<< "libtorrent version: " << LIBTORRENT_VERSION << "\n"
<< "libtorrent revision: " << LIBTORRENT_REVISION << "\n\n";
#define PRINT_SIZEOF(x) (*m_logger) << "sizeof(" #x "): " << sizeof(x) << "\n";
#define PRINT_OFFSETOF(x, y) (*m_logger) << " offsetof(" #x "," #y "): " << offsetof(x, y) << "\n";