diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-13 21:50:55 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-05-13 21:52:50 +0400 |
commit | 9531091eb8ec4c8c7e62d727f962e19c334e7ef2 (patch) | |
tree | 35499d2b55583e8c95715a605ad53f25a55389aa /source/blender/blenlib/BLI_math_base.h | |
parent | b9967bfb3f66a0814a10ac5510bcc379de588485 (diff) |
Fix compilation error with debug SCons
For some reason SCons defines _DEBUG, not DEBUG as mathutils was
expecting it to be.
Made it so mathutils checks for NDEBUG which mimics BLI_assert
define.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 5bd8490db6e..54e9349f1f8 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -255,7 +255,7 @@ double double_round(double x, int ndigits); /* asserts, some math functions expect normalized inputs * check the vector is unit length, or zero length (which can't be helped in some cases). */ -#ifdef DEBUG +#ifndef NDEBUG /* note: 0.0001 is too small becaues normals may be converted from short's: see [#34322] */ # define BLI_ASSERT_UNIT_EPSILON 0.0002f # define BLI_ASSERT_UNIT_V3(v) { \ |