Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 33 lines 1.5 kB view raw
1diff -ur blitz-0.10/blitz/bzdebug.h blitz-0.10.new/blitz/bzdebug.h 2--- blitz-0.10/blitz/bzdebug.h 2012-05-11 22:11:13.000000000 +0200 3+++ blitz-0.10.new/blitz/bzdebug.h 2012-06-28 15:42:38.060656045 +0200 4@@ -117,15 +117,15 @@ 5 } 6 } 7 8- #define BZASSERT(X) checkAssert(X, __FILE__, __LINE__) 9- #define BZPRECONDITION(X) checkAssert(X, __FILE__, __LINE__) 10- #define BZPOSTCONDITION(X) checkAssert(X, __FILE__, __LINE__) 11- #define BZSTATECHECK(X,Y) checkAssert(X == Y, __FILE__, __LINE__) 12+ #define BZASSERT(X) blitz::checkAssert(X, __FILE__, __LINE__) 13+ #define BZPRECONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__) 14+ #define BZPOSTCONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__) 15+ #define BZSTATECHECK(X,Y) blitz::checkAssert(X == Y, __FILE__, __LINE__) 16 #define BZPRECHECK(X,Y) \ 17 { \ 18 if ((assertFailMode == false) && (!(X))) \ 19 BZ_STD_SCOPE(cerr) << Y << BZ_STD_SCOPE(endl); \ 20- checkAssert(X, __FILE__, __LINE__); \ 21+ blitz::checkAssert(X, __FILE__, __LINE__); \ 22 } 23 24 #define BZ_DEBUG_MESSAGE(X) \ 25@@ -138,7 +138,7 @@ 26 } 27 28 #define BZ_DEBUG_PARAM(X) X 29- #define BZ_PRE_FAIL checkAssert(0) 30+ #define BZ_PRE_FAIL blitz::checkAssert(0) 31 #define BZ_ASM_DEBUG_MARKER 32 33 #elif defined(BZ_DEBUG)