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
This commit is contained in:
Jean-Luc Peurière 2004-06-13 21:11:10 +00:00
parent d56315aa18
commit e06fba8a1d

@ -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 <assert.h>
#define MT_assert(predicate) assert(predicate)
#endif /* MT_NDEBUG */
#else
#define MT_assert(predicate) ((void)0)
#endif /* MT_DEBUG */
#endif