ad1741219a12ac6107b2ec761d259b6d9ac12a68
[IRC.git] / Robust / src / Runtime / DSTM / interface / dsmdebug.h
1 #ifndef _DSMDEBUG_H_
2 #define _DSMDEBUG_H_
3
4 #define TABORT1(s) {printf("%s\n", s); fflush(stdout);} 
5 #define TABORT2(s, msg) {printf("%s(): %s\n", s, msg); fflush(stdout);} 
6 #define TABORT3(func, s, msg, d) {printf("%s(): %s: for %s = %d\n", func, s, msg, d); fflush(stdout);} 
7 #define TABORT4(s, d) {printf("%s = %d\n", s, d); fflush(stdout);} 
8 #define TABORT5(func, msg1 , msg2, val1, val2) {printf("%s(): %s = %x, %s = %d\n", func, msg1, val1, msg2, val2); fflush(stdout);} 
9 #define TABORT6(a, b, c, val1, val2) {printf("%s = %x, %s for %s = %x\n", a, val1, b, c, val2); fflush(stdout);}
10 #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);}
11 #define TABORT8(func, s, d) {printf("%s(): %s = %d\n", func, s, d); fflush(stdout);} 
12
13
14 #endif