From e06fba8a1d01e517e5d15e39e9848adbf9284fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Sun, 13 Jun 2004 21:11:10 +0000 Subject: changed MT_NDEBUG macro to a MT_DEBUG one and reversed defines So now by default, assert is not used in moto code. If you want to use assert (and stop blender if one fail), define MT_DEBUG. solve bug #1292 and better fix for #1260 --- intern/moto/include/MT_assert.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'intern/moto') diff --git a/intern/moto/include/MT_assert.h b/intern/moto/include/MT_assert.h index b9680c1e684..bff85c4074f 100644 --- a/intern/moto/include/MT_assert.h +++ b/intern/moto/include/MT_assert.h @@ -32,17 +32,17 @@ #ifndef MT_ASSERT_H #define MT_ASSERT_H -#ifdef MT_NDEBUG - -#define MT_assert(predicate) ((void)0) - -#else +#ifdef MT_DEBUG #include #define MT_assert(predicate) assert(predicate) -#endif /* MT_NDEBUG */ +#else + +#define MT_assert(predicate) ((void)0) + +#endif /* MT_DEBUG */ #endif -- cgit v1.2.3