Go to the documentation of this file. 1 #ifndef RecoTracker_MkFitCore_src_Debug_h 8 #define RecoTracker_MkFitCore_src_Debug_h 54 #define dmutex_guard std::lock_guard<std::mutex> dlock(debug_mutex) 56 if (debug && g_debug) { \ 58 std::cout << x << std::endl; \ 60 #define dprint_np(n, x) \ 61 if (debug && g_debug && n < N_proc) { \ 63 std::cout << n << ": " << x << std::endl; \ 66 if (debug && g_debug) { \ 70 #define dprintf(...) \ 71 if (debug && g_debug) { \ 73 printf(__VA_ARGS__); \ 75 #define dprintf_np(n, ...) \ 76 if (debug && g_debug && n < N_proc) { \ 78 std::cout << n << ": "; \ 79 printf(__VA_ARGS__); \ 89 ~debug_guard() {
debug = m_prev_debug; }
95 #define dprint(x) (void(0)) 96 #define dprint_np(n, x) (void(0)) 97 #define dcall(x) (void(0)) 98 #define dprintf(...) (void(0)) 99 #define dprintf_np(n, ...) (void(0))