forked from bartvdbraak/blender
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:
parent
d56315aa18
commit
e06fba8a1d
@ -32,17 +32,17 @@
|
|||||||
#ifndef MT_ASSERT_H
|
#ifndef MT_ASSERT_H
|
||||||
#define MT_ASSERT_H
|
#define MT_ASSERT_H
|
||||||
|
|
||||||
#ifdef MT_NDEBUG
|
#ifdef MT_DEBUG
|
||||||
|
|
||||||
#define MT_assert(predicate) ((void)0)
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#define MT_assert(predicate) assert(predicate)
|
#define MT_assert(predicate) assert(predicate)
|
||||||
|
|
||||||
#endif /* MT_NDEBUG */
|
#else
|
||||||
|
|
||||||
|
#define MT_assert(predicate) ((void)0)
|
||||||
|
|
||||||
|
#endif /* MT_DEBUG */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user