WSTester updated to work plus hopefully all the other changes that need to go into...
[jabaws.git] / binaries / src / ViennaRNA / RNAforester / src / debug.h
diff --git a/binaries/src/ViennaRNA/RNAforester/src/debug.h b/binaries/src/ViennaRNA/RNAforester/src/debug.h
new file mode 100644 (file)
index 0000000..88dc287
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef _DEBUG_H_
+#define _DEBUG_H_
+
+#include <iostream>
+
+#ifndef RNAF_DEBUGLEVEL
+   #define RNAF_DEBUGLEVEL 5 
+#endif
+
+#define DBG_OFF 6
+#define DBG_QWATCH                1
+
+// program intern debug levels
+#define DBG_BACKTRACK             DBG_OFF
+#define DBG_GET_PROFILE_STRUCTURE DBG_OFF
+#define DBG_ALGEBRA               DBG_OFF
+#define DBG_ALIGNMENT             DBG_OFF
+#define DBG_MULTIPLE              DBG_OFF
+
+#ifdef NDEBUG
+  #define TRACE(L,C,M)
+  #define WATCH(L,C,M)
+  #define QWATCH(L,C,M)
+#else
+  #define TRACE(L,C,M)     if(L <= RNAF_DEBUGLEVEL) cout << C << " - " << M << endl;
+  #define WATCH(L,C,M)     if(L <= RNAF_DEBUGLEVEL) cout << C << " - " << #M  << ": " << M << endl;
+  #define QWATCH(M)        if(DBG_QWATCH <= RNAF_DEBUGLEVEL) cout << #M  << ": " << M << endl;
+#endif
+
+#endif