forked from bartvdbraak/blender
rewind of previous commit as some experiment bad problems.
This means that bug #1292 is alive again unless you define MT_NDEBUG which I doubt many do.
This commit is contained in:
parent
73642b2a42
commit
f24be4c6ad
@ -32,17 +32,17 @@
|
|||||||
#ifndef MT_ASSERT_H
|
#ifndef MT_ASSERT_H
|
||||||
#define MT_ASSERT_H
|
#define MT_ASSERT_H
|
||||||
|
|
||||||
#ifdef MT_DEBUG
|
#ifdef MT_NDEBUG
|
||||||
|
|
||||||
|
#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)
|
||||||
|
|
||||||
#else
|
#endif /* MT_NDEBUG */
|
||||||
|
|
||||||
#define MT_assert(predicate) ((void)0)
|
|
||||||
|
|
||||||
#endif /* MT_DEBUG */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user