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

This commit is contained in:
Bastien Montagne 2020-11-11 10:15:18 +01:00
parent 15ffda3bcd
commit 9b3dabacbc
1 changed files with 1 additions and 1 deletions

View File

@ -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,