[Bf-blender-cvs] [395a2bcf195] temp-lanpr-cleanup: Fix build error in debug build on macOS
Brecht Van Lommel
noreply at git.blender.org
Wed Sep 25 03:49:26 CEST 2019
Commit: 395a2bcf19513f09d34eac971e16602b7f63ec3c
Author: Brecht Van Lommel
Date: Fri Sep 20 23:39:13 2019 +0200
Branches: temp-lanpr-cleanup
https://developer.blender.org/rB395a2bcf19513f09d34eac971e16602b7f63ec3c
Fix build error in debug build on macOS
NDEBUG is the standard define, not DEBUG.
===================================================================
M source/blender/blenlib/BLI_vector.h
===================================================================
diff --git a/source/blender/blenlib/BLI_vector.h b/source/blender/blenlib/BLI_vector.h
index 7a001c653d2..46c46a1440f 100644
--- a/source/blender/blenlib/BLI_vector.h
+++ b/source/blender/blenlib/BLI_vector.h
@@ -50,7 +50,7 @@ template<typename T, uint N = 4, typename Allocator = GuardedAllocator> class Ve
Allocator m_allocator;
char m_small_buffer[sizeof(T) * N];
-#ifdef DEBUG
+#ifndef NDEBUG
/* Storing size in debug builds, because it makes debugging much easier sometimes. */
uint m_debug_size;
# define UPDATE_VECTOR_SIZE(ptr) (ptr)->m_debug_size = (uint)((ptr)->m_end - (ptr)->m_begin)
More information about the Bf-blender-cvs
mailing list