From 8ee07e98e8524dd6f0c7376af651e353f4456a7c Mon Sep 17 00:00:00 2001 From: kingscallop <54776947+kingscallop@users.noreply.github.com> Date: Fri, 29 Apr 2022 15:37:50 +0100 Subject: [PATCH] Define SPK_TRACE_MEMORY only if NDEBUG is defined The macro SPK_TRACE_MEMORY when using the MSVC compiler is only defined if building in debug mode however when using the gcc or clang compilers it is defined always. This patch sets the macro to only be defined when building in debug mode across all compilers. --- include/Core/SPK_MemoryTracer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Core/SPK_MemoryTracer.h b/include/Core/SPK_MemoryTracer.h index 628097ae..f6f094e4 100644 --- a/include/Core/SPK_MemoryTracer.h +++ b/include/Core/SPK_MemoryTracer.h @@ -22,7 +22,7 @@ #ifndef H_SPK_MEMORYTRACER #define H_SPK_MEMORYTRACER -#ifdef _DEBUG +#if defined(_DEBUG) || !defined(NDEBUG) #define SPK_TRACE_MEMORY #endif