TS++ library: time series library
debug.h
Go to the documentation of this file.
1 
36 // include guard
37 #ifndef TSXX_DEBUG_H_VERSION
38 
39 #define TSXX_DEBUG_H_VERSION \
40  "TSXX_DEBUG_H V1.0 "
41 
42 #include<iostream>
43 
51 #define TSXX_debug(C,N,M) \
52  if (C) { \
53  std::cerr << "DEBUG (" << N << ", " \
54  << __FILE__ << " line #" << __LINE__ << "):" << std::endl \
55  << " " << M << std::endl; \
56  std::cerr.flush(); \
57  }
58 
66 #define TSXX_value(V) #V << ": " << V
67 
68 #endif // TSXX_DEBUG_H_VERSION (includeguard)
69 
70 /* ----- END OF debug.h ----- */