[Bf-blender-cvs] [f72b3f33a0e] functions: define UNUSED_FUNCTION_NDEBUG macro
Jacques Lucke
noreply at git.blender.org
Thu Feb 13 12:04:48 CET 2020
Commit: f72b3f33a0eb6d3718db4bb56485270719a6930c
Author: Jacques Lucke
Date: Thu Feb 13 11:53:05 2020 +0100
Branches: functions
https://developer.blender.org/rBf72b3f33a0eb6d3718db4bb56485270719a6930c
define UNUSED_FUNCTION_NDEBUG macro
===================================================================
M source/blender/blenlib/BLI_utildefines.h
===================================================================
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index 5d80da6de77..63a216809a9 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -695,6 +695,12 @@ extern bool BLI_memory_is_zero(const void *arr, const size_t arr_size);
# define UNUSED_FUNCTION(x) UNUSED_##x
#endif
+#ifdef DEBUG
+# define UNUSED_FUNCTION_NDEBUG(x) x
+#else
+# define UNUSED_FUNCTION_NDEBUG(x) UNUSED_FUNCTION(x)
+#endif
+
/**
* UNUSED_VARS#(a, ...): quiet unused warnings
*
More information about the Bf-blender-cvs
mailing list