[03/16] radv: tie radv_assert() enablement to regular assert()

Submitted by Eric Engestrom on Nov. 24, 2017, 6:07 p.m.

Details

Message ID 20171124180757.7616-3-eric.engestrom@imgtec.com
State New
Headers show
Series "Series without cover letter" ( rev: 2 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Eric Engestrom Nov. 24, 2017, 6:07 p.m.
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 src/amd/vulkan/radv_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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); \