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
This commit is contained in:
parent
0d46ad4ca5
commit
c3a52084f8
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user