Allow 'deluge_core.cpp' to be compiled without NDEBUG defined. Patch

from plisk.
This commit is contained in:
Andrew Resch 2007-07-09 02:26:59 +00:00
parent c87d165a1f
commit 8ee99ee9a1
1 changed files with 7 additions and 2 deletions

View File

@ -305,9 +305,14 @@ static PyObject *torrent_pre_init(PyObject *self, PyObject *args)
static PyObject *torrent_init(PyObject *self, PyObject *args)
{
printf("deluge_core; using libtorrent %s. Compiled with NDEBUG value: %d\r\n",
printf("deluge_core; using libtorrent %s. Compiled %s NDEBUG.\r\n",
LIBTORRENT_VERSION,
NDEBUG);
#ifdef NDEBUG
"with"
#else
"without"
#endif
);
// Tell Boost that we are on *NIX, so bloody '.'s are ok inside a directory name!
boost::filesystem::path::default_name_check(empty_name_check);