diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-21 00:39:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-21 00:41:54 +0300 |
commit | bf14e323e67f5cc7721a088bc8ea5fe00f2f7296 (patch) | |
tree | 8ac5192c68144ebd1a6964d371e8d5c6e649f810 /source | |
parent | ac15bf16462b79265eac70091f40d0ca0cde77b0 (diff) |
Fix build error in debug build on macOS
NDEBUG is the standard define, not DEBUG.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_vector.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |