summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-12-28 21:01:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-12-28 21:01:52 +0000
commitc3a52084f8ca0dc93daaf81efb726d051ed47bf6 (patch)
tree82ee37fedd84ad33f0c59fe6559b5ab46712ae3b /libs
parent0d46ad4ca585b8125fbdcb8ba73c9391e039d43b (diff)
new DEBUG_ENABLED(bits) macro, potentially useful here and there
git-svn-id: svn://localhost/ardour2/branches/3.0@11102 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/pbd/debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/pbd/pbd/debug.h b/libs/pbd/pbd/debug.h
index 8245b99b12..43fc9090cc 100644
--- a/libs/pbd/pbd/debug.h
+++ b/libs/pbd/pbd/debug.h
@@ -49,10 +49,12 @@ namespace PBD {
#define DEBUG_STR_DECL(id) std::stringstream __debug_str ## id;
#define DEBUG_STR(id) __debug_str ## id
#define DEBUG_STR_APPEND(id,s) __debug_str ## id << s;
+#define DEBUG_ENABLED(bits) ((bits) & PBD::debug_bits)
#else
#define DEBUG_TRACE(bits,fmt,...) /*empty*/
#define DEBUG_STR(a) /* empty */
#define DEBUG_STR_APPEND(a,b) /* empty */
+#define DEBUG_ENABLED(b) (0)
#endif
#endif /* __libpbd_debug_h__ */