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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-12-12 20:51:05 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-12-12 20:51:05 +0400
commitf1d3a2e130d9ce18466d3587decf70567c80c1eb (patch)
tree479396fb50eecea75ef15f02d2dbd7041907a19b /source/blender
parent82cc300ec6c72f5977ceea249b0af8a0756f3b36 (diff)
Fix error compiling in debug build, should test #ifndef NDEBUG instead of
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/include/ED_mesh.h2
-rw-r--r--source/blender/editors/mesh/editmesh_utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h
index b4e430e3560..1b4a67d38c0 100644
--- a/source/blender/editors/include/ED_mesh.h
+++ b/source/blender/editors/include/ED_mesh.h
@@ -92,7 +92,7 @@ void EDBM_mesh_load(struct Object *ob);
void EDBM_index_arrays_ensure(struct BMEditMesh *em, const char htype);
void EDBM_index_arrays_init(struct BMEditMesh *em, const char htype);
void EDBM_index_arrays_free(struct BMEditMesh *em);
-#ifdef DEBUG
+#ifndef NDEBUG
int EDBM_index_arrays_check(struct BMEditMesh *em);
#endif
struct BMVert *EDBM_vert_at_index(struct BMEditMesh *em, int index);
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c
index a07fb4ea66e..cbb7262beb2 100644
--- a/source/blender/editors/mesh/editmesh_utils.c
+++ b/source/blender/editors/mesh/editmesh_utils.c
@@ -466,7 +466,7 @@ void EDBM_index_arrays_free(BMEditMesh *em)
}
/* debug check only - no need to optimize */
-#ifdef DEBUG
+#ifndef NDEBUG
int EDBM_index_arrays_check(BMEditMesh *em)
{
BMIter iter;