From 631af5c80e6325368eba19dca0fae7d86de88412 Mon Sep 17 00:00:00 2001
From: adash <adash>
Date: Sun, 3 Aug 2008 19:45:17 +0000
Subject: [PATCH] Added new header file for debug only

---
 Robust/src/Runtime/DSTM/interface/dsmdebug.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Robust/src/Runtime/DSTM/interface/dsmdebug.h

diff --git a/Robust/src/Runtime/DSTM/interface/dsmdebug.h b/Robust/src/Runtime/DSTM/interface/dsmdebug.h
new file mode 100644
index 00000000..ad174121
--- /dev/null
+++ b/Robust/src/Runtime/DSTM/interface/dsmdebug.h
@@ -0,0 +1,14 @@
+#ifndef _DSMDEBUG_H_
+#define _DSMDEBUG_H_
+
+#define TABORT1(s) {printf("%s\n", s); fflush(stdout);} 
+#define TABORT2(s, msg) {printf("%s(): %s\n", s, msg); fflush(stdout);} 
+#define TABORT3(func, s, msg, d) {printf("%s(): %s: for %s = %d\n", func, s, msg, d); fflush(stdout);} 
+#define TABORT4(s, d) {printf("%s = %d\n", s, d); fflush(stdout);} 
+#define TABORT5(func, msg1 , msg2, val1, val2) {printf("%s(): %s = %x, %s = %d\n", func, msg1, val1, msg2, val2); fflush(stdout);} 
+#define TABORT6(a, b, c, val1, val2) {printf("%s = %x, %s for %s = %x\n", a, val1, b, c, val2); fflush(stdout);}
+#define TABORT7(func, a, b, c, val1, val2) {printf("%s(): %s for %s =%x, %s = %d\n", func, a, b, val1, c, val2); fflush(stdout);}
+#define TABORT8(func, s, d) {printf("%s(): %s = %d\n", func, s, d); fflush(stdout);} 
+
+
+#endif
-- 
2.34.1