From 8ee99ee9a19bc24bb66fc2edb255b78dca1c33d7 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 9 Jul 2007 02:26:59 +0000 Subject: [PATCH] Allow 'deluge_core.cpp' to be compiled without NDEBUG defined. Patch from plisk. --- src/deluge_core.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 136de9068..c65eb7691 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -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);