CUBA
debug.hh
1 
10 #ifndef DEBUG_HH_
11 #define DEBUG_HH_
12 
13 #define NDEBUG
14 
15 #ifndef NDEBUG
16 #define DEBUG_MODE
17 #else
18 #endif
19 
20 #ifdef DEBUG_MODE
21 # define DBG_LOG(x) std::cerr << x <<"\n";
22 # define DBG_STD(x) x;
23 # define DBG_LOC() std::cerr <<__func__<<" I am here ..."<<"\n";
24 #else
25 # define DBG_LOG(x)
26 # define DBG_STD(x)
27 # define DBG_LOC();
28 #endif // DEBUG
29 
30 #define STATISTIC
31 
32 namespace ruba {
33 class debugger {
34 public:
35  debugger();
36  ~debugger();
37 };
38 
39 class logger {
40 public:
41  logger() {
42  }
43  ~logger() {
44 
45  }
46 };
47 }
48 #endif /* DEBUG_HH_ */
Definition: cpda.cc:10
Definition: debug.hh:39
Definition: debug.hh:33