mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
|
diff -ur blitz-0.10/blitz/bzdebug.h blitz-0.10.new/blitz/bzdebug.h
|
||
|
--- blitz-0.10/blitz/bzdebug.h 2012-05-11 22:11:13.000000000 +0200
|
||
|
+++ blitz-0.10.new/blitz/bzdebug.h 2012-06-28 15:42:38.060656045 +0200
|
||
|
@@ -117,15 +117,15 @@
|
||
|
}
|
||
|
}
|
||
|
|
||
|
- #define BZASSERT(X) checkAssert(X, __FILE__, __LINE__)
|
||
|
- #define BZPRECONDITION(X) checkAssert(X, __FILE__, __LINE__)
|
||
|
- #define BZPOSTCONDITION(X) checkAssert(X, __FILE__, __LINE__)
|
||
|
- #define BZSTATECHECK(X,Y) checkAssert(X == Y, __FILE__, __LINE__)
|
||
|
+ #define BZASSERT(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
||
|
+ #define BZPRECONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
||
|
+ #define BZPOSTCONDITION(X) blitz::checkAssert(X, __FILE__, __LINE__)
|
||
|
+ #define BZSTATECHECK(X,Y) blitz::checkAssert(X == Y, __FILE__, __LINE__)
|
||
|
#define BZPRECHECK(X,Y) \
|
||
|
{ \
|
||
|
if ((assertFailMode == false) && (!(X))) \
|
||
|
BZ_STD_SCOPE(cerr) << Y << BZ_STD_SCOPE(endl); \
|
||
|
- checkAssert(X, __FILE__, __LINE__); \
|
||
|
+ blitz::checkAssert(X, __FILE__, __LINE__); \
|
||
|
}
|
||
|
|
||
|
#define BZ_DEBUG_MESSAGE(X) \
|
||
|
@@ -138,7 +138,7 @@
|
||
|
}
|
||
|
|
||
|
#define BZ_DEBUG_PARAM(X) X
|
||
|
- #define BZ_PRE_FAIL checkAssert(0)
|
||
|
+ #define BZ_PRE_FAIL blitz::checkAssert(0)
|
||
|
#define BZ_ASM_DEBUG_MARKER
|
||
|
|
||
|
#elif defined(BZ_DEBUG)
|