From 8d8bbb092070c33b6d8558eabf50690196d49260 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 25 Jan 2009 16:50:40 +0000 Subject: [PATCH] Add a DEBUG() define which can be used for outputting debug info DEBUG_ONLY() is only ever used for debug output, so adding a separate define for this sounds like a good idea. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1348 726aef4b-f618-498e-8847-2d620e286838 --- Utils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utils.h b/Utils.h index 3d3e5285..65677be4 100644 --- a/Utils.h +++ b/Utils.h @@ -27,6 +27,8 @@ using std::vector; #define DEBUG_ONLY(f) ((void)0) #endif +#define DEBUG(f) DEBUG_ONLY(cout << f << endl) + static inline void SetFdCloseOnExec(int fd) { int flags = fcntl(fd, F_GETFD, 0);