STFINV library: seek source wavelet correction filter
debug.h
Go to the documentation of this file.
1 
36 // include guard
37 #ifndef STFINV_DEBUG_H_VERSION
38 
39 #define STFINV_DEBUG_H_VERSION \
40  "STFINV_DEBUG_H V1.0"
41 
49 #define STFINV_debug(C,N,M) \
50  if (C) { \
51  std::cerr << "DEBUG (" << N << ", " \
52  << __FILE__ << " line #" << __LINE__ << "):" << std::endl \
53  << " " << M << std::endl; \
54  std::cerr.flush(); \
55  }
56 
62 #define STFINV_value( P ) #P << "=" << P
63 
69 #define STFINV_DUMP( P ) \
70  std::cerr << "DEBUG: " \
71  << __FILE__ << " line #" << __LINE__ << " " \
72  << #P << "=" << P << std::endl;
73 
74 #endif // STFINV_DEBUG_H_VERSION (includeguard)
75 
76 /* ----- END OF debug.h ----- */