[Mesa-dev] [PATCH mesa 03/16] radv: tie radv_assert() enablement to regular assert()

Eric Engestrom eric.engestrom at imgtec.com
Fri Nov 24 18:07:43 UTC 2017


Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 src/amd/vulkan/radv_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index addd35e5ce10fa37bd3f..327ce5415947abc1712d 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -235,7 +235,7 @@ void radv_loge_v(const char *format, va_list va);
 	} while (0)
 
 /* A non-fatal assert.  Useful for debugging. */
-#ifdef DEBUG
+#ifndef NDEBUG
 #define radv_assert(x) ({						\
 			if (unlikely(!(x)))				\
 				fprintf(stderr, "%s:%d ASSERT: %s\n", __FILE__, __LINE__, #x); \
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list