Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJean-Luc Peurière <jlp@nerim.net>2004-06-14 22:52:56 +0400
committerJean-Luc Peurière <jlp@nerim.net>2004-06-14 22:52:56 +0400
commitf24be4c6ade18276a1210afac44c66b9329afe20 (patch)
treefaa85a7142ae31b8329c3fa2a841a07749cf1aaa /intern
parent73642b2a4237e0d1126603e41b8eed7ba16832f8 (diff)
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.
Diffstat (limited to 'intern')
-rw-r--r--intern/moto/include/MT_assert.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/intern/moto/include/MT_assert.h b/intern/moto/include/MT_assert.h
index bff85c4074f..b9680c1e684 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_DEBUG
+#ifdef MT_NDEBUG
-#include <assert.h>
-
-#define MT_assert(predicate) assert(predicate)
+#define MT_assert(predicate) ((void)0)
#else
-#define MT_assert(predicate) ((void)0)
+#include <assert.h>
+
+#define MT_assert(predicate) assert(predicate)
-#endif /* MT_DEBUG */
+#endif /* MT_NDEBUG */
#endif