[Bf-blender-cvs] [9b3dabacbcb] master: Cleanup: Use `NDEBUG` define, `DEBUG` one is not reliable.

Bastien Montagne noreply at git.blender.org
Wed Nov 11 10:16:06 CET 2020


Commit: 9b3dabacbcb3e2e108a49309df647692dab320dc
Author: Bastien Montagne
Date:   Wed Nov 11 10:15:18 2020 +0100
Branches: master
https://developer.blender.org/rB9b3dabacbcb3e2e108a49309df647692dab320dc

Cleanup: Use `NDEBUG` define, `DEBUG` one is not reliable.

===================================================================

M	source/blender/makesrna/intern/rna_define.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c
index b437e60ecf9..1b0a2fca0ce 100644
--- a/source/blender/makesrna/intern/rna_define.c
+++ b/source/blender/makesrna/intern/rna_define.c
@@ -1303,7 +1303,7 @@ PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_,
     rna_addtail(&dcont->properties, dprop);
   }
   else {
-#ifdef DEBUG
+#ifndef NDEBUG
     char error[512];
     if (rna_validate_identifier(identifier, error, true) == 0) {
       CLOG_ERROR(&LOG,



More information about the Bf-blender-cvs mailing list