summaryrefslogtreecommitdiffabout
path: root/include/opkele/debug.h
authorMichael Krelin <hacker@klever.net>2008-01-01 14:09:08 (UTC)
committer Michael Krelin <hacker@klever.net>2008-01-04 18:24:38 (UTC)
commitb52ad4dc051835fdf8417f748bf40ba4c17449d4 (patch) (unidiff)
tree01c9fd136f2dcf8f16c7f016b1fdf8e5582b0182 /include/opkele/debug.h
parent15d089da9f7682bc3524b6a278cfcd64621e7db2 (diff)
downloadlibopkele-b52ad4dc051835fdf8417f748bf40ba4c17449d4.zip
libopkele-b52ad4dc051835fdf8417f748bf40ba4c17449d4.tar.gz
libopkele-b52ad4dc051835fdf8417f748bf40ba4c17449d4.tar.bz2
output thrown exceptions to clog stream
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include/opkele/debug.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/debug.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/opkele/debug.h b/include/opkele/debug.h
new file mode 100644
index 0000000..a02f8d4
--- a/dev/null
+++ b/include/opkele/debug.h
@@ -0,0 +1,17 @@
1#ifndef __OPKELE_DEBUG_H
2#define __OPKELE_DEBUG_H
3
4#ifdef NDEBUG
5
6 #define D_(x) ((void)0)
7 #define DOUT_(x)((void)0)
8
9#else /* NDEBUG */
10
11 #define D_(x) x
12#include <iostream>
13 #define DOUT_(x)std::clog << x << std::endl
14
15#endif /* NDEBUG */
16
17#endif /* __OPKELE_DEBUG_H */