[Bf-blender-cvs] [667b56f87b0] functions: use "ifdef DEBUG" instead of "if DEBUG"

Jacques Lucke noreply at git.blender.org
Tue Jul 16 18:20:31 CEST 2019


Commit: 667b56f87b0d1e42f1f5824ffb066ba1d3eb37e0
Author: Jacques Lucke
Date:   Tue Jul 16 16:28:49 2019 +0200
Branches: functions
https://developer.blender.org/rB667b56f87b0d1e42f1f5824ffb066ba1d3eb37e0

use "ifdef DEBUG" instead of "if DEBUG"

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

M	source/blender/functions/frontends/data_flow_nodes/inserters/nodes.cpp

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

diff --git a/source/blender/functions/frontends/data_flow_nodes/inserters/nodes.cpp b/source/blender/functions/frontends/data_flow_nodes/inserters/nodes.cpp
index 9b758174552..8cb2824b123 100644
--- a/source/blender/functions/frontends/data_flow_nodes/inserters/nodes.cpp
+++ b/source/blender/functions/frontends/data_flow_nodes/inserters/nodes.cpp
@@ -23,7 +23,7 @@ static SharedFunction get_vectorized_function(SharedFunction &original_fn,
                                               ArrayRef<AutoVectorizedInput> auto_vectorized_inputs,
                                               bool use_cache = true)
 {
-#if DEBUG
+#ifdef DEBUG
   BLI_assert(original_fn->input_amount() == auto_vectorized_inputs.size());
   for (uint i = 0; i < original_fn->input_amount(); i++) {
     BLI_assert(original_fn->input_type(i) ==



More information about the Bf-blender-cvs mailing list