34 #include <ardourext/pthread.h>
81 #define DEBUG_TRACE(bits,str) if (((bits) & PBD::debug_bits).any()) { PBD::debug_print (# bits, str); }
82 #define DEBUG_STR_DECL(id) std::stringstream __debug_str ## id;
83 #define DEBUG_STR(id) __debug_str ## id
84 #define DEBUG_STR_APPEND(id,s) __debug_str ## id << s;
85 #define DEBUG_ENABLED(bits) (((bits) & PBD::debug_bits).any())
87 #define DEBUG_THREAD_SELF pthread_self().p
88 #define DEBUG_THREAD_PRINT(t) t.p
90 #define DEBUG_THREAD_SELF pthread_self()
91 #define DEBUG_THREAD_PRINT(t) t
94 #define DEBUG_TIMING_START(bits,td) if (DEBUG_ENABLED (bits)) { td.start_timing (); }
95 #define DEBUG_TIMING_ADD_ELAPSED(bits,td) if (DEBUG_ENABLED (bits)) { td.add_elapsed (); }
96 #define DEBUG_TIMING_RESET(bits,td) if (DEBUG_ENABLED (bits)) { td.reset (); }
98 #define DEBUG_RESULT(type,var,...) type var = __VA_ARGS__
99 #define DEBUG_RESULT_CAST(type,var,cast_expr,...) type var = cast_expr __VA_ARGS__
100 #define DEBUG_ASSIGN(var,expr) var = expr
105 #define DEBUG_TRACE(bits,fmt,...)
107 #define DEBUG_STR_APPEND(a,b)
108 #define DEBUG_ENABLED(b) (0)
109 #define DEBUG_THREAD_SELF 0
111 #define DEBUG_TIMING_START(bits,td)
112 #define DEBUG_TIMING_ADD_ELAPSED(bits,td)
113 #define DEBUG_TIMING_RESET(bits,td)
115 #define DEBUG_RESULT(type,var,...) __VA_ARGS__
116 #define DEBUG_RESULT_CAST(type,var,cast_expr,...) __VA_ARGS__
117 #define DEBUG_ASSIGN(var,expr)
GtkImageIconNameData name
DebugBits DebugTimestamps
int parse_debug_options(const char *str)
void list_debug_options()
void debug_print(const char *prefix, std::string str)
void debug_only_print(const char *prefix, std::string str)
DebugBits new_debug_bit(const char *name)
void set_debug_bits(DebugBits bits)
std::bitset< 256 > DebugBits