[Bf-blender-cvs] [7135c97133e] soc-2020-info-editor: Rename clog check macro

Mateusz Grzeliński noreply at git.blender.org
Wed Jul 8 15:14:48 CEST 2020


Commit: 7135c97133ea2bf43d25aa8e268ed18ff41f03b7
Author: Mateusz Grzeliński
Date:   Wed Jul 8 13:16:02 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB7135c97133ea2bf43d25aa8e268ed18ff41f03b7

Rename clog check macro

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

M	intern/clog/CLG_log.h
M	source/blender/blenkernel/intern/curveprofile.c
M	source/blender/editors/undo/ed_undo.c

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

diff --git a/intern/clog/CLG_log.h b/intern/clog/CLG_log.h
index 537231313ab..cb4eec9f2d1 100644
--- a/intern/clog/CLG_log.h
+++ b/intern/clog/CLG_log.h
@@ -192,7 +192,7 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
 #define CLOG_CHECK_IN_USE(clg_ref, ...) \
   ((void)CLOG_ENSURE(clg_ref), ((clg_ref)->type->flag & CLG_FLAG_USE))
 
-#define CLOG_CHECK_LEVEL(clg_ref, verbose_level, ...) \
+#define CLOG_CHECK_VERBOSITY(clg_ref, verbose_level, ...) \
   ((void)CLOG_ENSURE(clg_ref), \
    ((clg_ref)->type->flag & CLG_FLAG_USE) && ((clg_ref)->type->level >= verbose_level))
 
diff --git a/source/blender/blenkernel/intern/curveprofile.c b/source/blender/blenkernel/intern/curveprofile.c
index bc24666fb1e..09a6f546243 100644
--- a/source/blender/blenkernel/intern/curveprofile.c
+++ b/source/blender/blenkernel/intern/curveprofile.c
@@ -863,7 +863,7 @@ void BKE_curveprofile_create_samples(CurveProfile *profile,
     BLI_assert(i_sample <= n_segments);
   }
 
-  if (CLOG_CHECK_LEVEL(&BKE_LOG_CURVEPROFILE_TABLE, 2)) {
+  if (CLOG_CHECK_VERBOSITY(&BKE_LOG_CURVEPROFILE_TABLE, 2)) {
     DynStr *message = BLI_dynstr_new();
     BLI_dynstr_appendf(message,
                        "CURVEPROFILE CREATE SAMPLES\n"
diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c
index 98529b408a9..a595160d11f 100644
--- a/source/blender/editors/undo/ed_undo.c
+++ b/source/blender/editors/undo/ed_undo.c
@@ -111,7 +111,7 @@ void ED_undo_push(bContext *C, const char *str)
     BKE_undosys_stack_limit_steps_and_memory(wm->undo_stack, -1, memory_limit);
   }
 
-  if (CLOG_CHECK_LEVEL(&LOG, 1)) {
+  if (CLOG_CHECK_VERBOSITY(&LOG, 1)) {
     BKE_undosys_print(wm->undo_stack);
   }
 }
@@ -251,7 +251,7 @@ static int ed_undo_step_impl(
   Main *bmain = CTX_data_main(C);
   WM_toolsystem_refresh_screen_all(bmain);
 
-  if (CLOG_CHECK_LEVEL(&LOG, 1)) {
+  if (CLOG_CHECK_VERBOSITY(&LOG, 1)) {
     BKE_undosys_print(wm->undo_stack);
   }



More information about the Bf-blender-cvs mailing list