From 461602a5f220cc5400b7a9e202c0fb18b06541e7 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sat, 1 Nov 2008 02:22:02 +0000 Subject: [PATCH] minor issue with btAssert under Cell --- src/LinearMath/btScalar.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/LinearMath/btScalar.h b/src/LinearMath/btScalar.h index b6617b2d8..b2a641469 100644 --- a/src/LinearMath/btScalar.h +++ b/src/LinearMath/btScalar.h @@ -65,7 +65,7 @@ inline int btGetVersion() #endif //__MINGW32__ #include -#if defined(DEBUG) || defined (_DEBUG) +#ifdef BT_DEBUG #define btAssert assert #else #define btAssert(x) @@ -85,7 +85,11 @@ inline int btGetVersion() #ifndef assert #include #endif +#ifdef BT_DEBUG #define btAssert assert +#else + #define btAssert(x) +#endif //btFullAssert is optional, slows down a lot #define btFullAssert(x) @@ -102,7 +106,11 @@ inline int btGetVersion() #ifndef assert #include #endif +#ifdef BT_DEBUG #define btAssert assert +#else + #define btAssert(x) +#endif //btFullAssert is optional, slows down a lot #define btFullAssert(x)