"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testing/test.h" between
xdelta3-3.0.10.tar.gz and xdelta3-3.0.11.tar.gz

About: xdelta is a tool and library for differential compression (supports VCDIFF encoding and decoding).

test.h  (xdelta3-3.0.10):test.h  (xdelta3-3.0.11)
skipping to change at line 25 skipping to change at line 25
#define CHECK_GT(x,y) CHECK_OP(x,y,>) #define CHECK_GT(x,y) CHECK_OP(x,y,>)
#define CHECK_LE(x,y) CHECK_OP(x,y,<=) #define CHECK_LE(x,y) CHECK_OP(x,y,<=)
#define CHECK_GE(x,y) CHECK_OP(x,y,>=) #define CHECK_GE(x,y) CHECK_OP(x,y,>=)
#define CHECK_OP(x,y,OP) \ #define CHECK_OP(x,y,OP) \
do { \ do { \
typeof(x) _x(x); \ typeof(x) _x(x); \
typeof(x) _y(y); \ typeof(x) _y(y); \
if (!(_x OP _y)) { \ if (!(_x OP _y)) { \
cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \
cerr << __FILE__ << ":" << __LINE__ << " Expected: " << _x << endl; \ cerr << __FILE__ << ":" << __LINE__ << " {0} " << _x << endl; \
cerr << __FILE__ << ":" << __LINE__ << " Actual: " << _y << endl; \ cerr << __FILE__ << ":" << __LINE__ << " {1} " << _y << endl; \
abort(); \ abort(); \
} } while (false) } } while (false)
#undef CHECK #undef CHECK
#define CHECK(x) \ #define CHECK(x) \
do {if (!(x)) { \ do {if (!(x)) { \
cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x << endl; \ cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x << endl; \
abort(); \ abort(); \
} } while (false) } } while (false)
#define DCHECK(x) #define DCHECK(x)
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS