aboutsummaryrefslogtreecommitdiff
path: root/src/Debug.hh
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
commitce0b41c8472135898a553d6d649d852beb80cffb (patch)
tree8cca2f6d8795c19c86ab70fa22e9c724e5f4453b /src/Debug.hh
parent7a86dad21b1d50b35857496c165e4e85cc0d2bd3 (diff)
downloadfluxbox_pavel-ce0b41c8472135898a553d6d649d852beb80cffb.zip
fluxbox_pavel-ce0b41c8472135898a553d6d649d852beb80cffb.tar.bz2
Changed #ifdef DEBUG ... cerr << to using fbdbg.
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
Diffstat (limited to 'src/Debug.hh')
-rw-r--r--src/Debug.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Debug.hh b/src/Debug.hh
new file mode 100644
index 0000000..3688b52
--- /dev/null
+++ b/src/Debug.hh
@@ -0,0 +1,13 @@
1#ifndef DEBUG_HH
2#define DEBUG_HH
3
4#include "config.h"
5#include <iostream>
6
7#ifdef DEBUG
8#define fbdbg std::cerr<<__FILE__<<"("<<__LINE__<< "): "
9#else
10#define fbdbg if (false) std::cerr
11#endif // DEBUG
12
13#endif // DEBUG_HH