LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
DebugMacros.h
Go to the documentation of this file.
1 #ifndef canvas_Utilities_DebugMacros_h
2 #define canvas_Utilities_DebugMacros_h
3 
4 #include "canvas/Utilities/fwd.h"
5 
6 #include <iostream>
7 
8 namespace art {
9  struct debugvalue {
10 
11  debugvalue();
12 
13  int
15  {
16  return value_;
17  }
18 
19  const char* cvalue_;
20  int value_;
21  };
22 
23  extern debugvalue debugit;
24 }
25 
26 #define FDEBUG(lev) \
27  if (lev <= art::debugit()) \
28  std::cerr
29 
30 #endif /* canvas_Utilities_DebugMacros_h */
31 
32 // Local Variables:
33 // mode: c++
34 // End:
debugvalue debugit
Definition: DebugMacros.cc:12
const char * cvalue_
Definition: DebugMacros.h:19
HLT enums.