diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-28 21:01:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-28 21:01:52 +0000 |
commit | c3a52084f8ca0dc93daaf81efb726d051ed47bf6 (patch) | |
tree | 82ee37fedd84ad33f0c59fe6559b5ab46712ae3b /libs | |
parent | 0d46ad4ca585b8125fbdcb8ba73c9391e039d43b (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.h | 2 |
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__ */ |