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/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_mempool.h2
-rw-r--r--source/creator/creator.c2
-rw-r--r--source/gameengine/GamePlayer/ghost/GPG_ghost.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h
index 25694f4445b..64e673f6db2 100644
--- a/source/blender/blenlib/BLI_mempool.h
+++ b/source/blender/blenlib/BLI_mempool.h
@@ -67,7 +67,7 @@ void **BLI_mempool_as_tableN(BLI_mempool *pool, const char *allocstr) ATTR_
void BLI_mempool_as_array(BLI_mempool *pool, void *data) ATTR_NONNULL(1, 2);
void *BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
-#ifdef DEBUG
+#ifndef NDEBUG
void BLI_mempool_set_memory_debug(void);
#endif
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 33a62c8ce6f..37e767b2eb1 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -445,7 +445,7 @@ static int debug_mode(int UNUSED(argc), const char **UNUSED(argv), void *data)
G.debug |= G_DEBUG; /* std output printf's */
printf(BLEND_VERSION_STRING_FMT);
MEM_set_memory_debug();
-#ifdef DEBUG
+#ifndef NDEBUG
BLI_mempool_set_memory_debug();
#endif
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
index faa29e15b65..a56d5b6d027 100644
--- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
+++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
@@ -599,7 +599,7 @@ int main(int argc, char** argv)
i++;
G.debug |= G_DEBUG;
MEM_set_memory_debug();
-#ifdef DEBUG
+#ifndef NDEBUG
BLI_mempool_set_memory_debug();
#endif
break;