DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 52f50cde8ee1ae4898a88abd0a17ffd77d600388
parent 9be5e79a555396c3a04d9c00dfe5c34124a59eb8
Author: falkTX <falktx@falktx.com>
Date:   Fri, 25 Nov 2022 22:36:16 +0000

Don't enable leak detector if NDEBUG is defined

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/extra/LeakDetector.hpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/distrho/extra/LeakDetector.hpp b/distrho/extra/LeakDetector.hpp @@ -50,7 +50,7 @@ START_NAMESPACE_DISTRHO #define DISTRHO_JOIN_MACRO_HELPER(a, b) a ## b #define DISTRHO_JOIN_MACRO(item1, item2) DISTRHO_JOIN_MACRO_HELPER(item1, item2) -#ifdef DEBUG +#if defined(DEBUG) && !defined(NDEBUG) /** This macro lets you embed a leak-detecting object inside a class.\n To use it, simply declare a DISTRHO_LEAK_DETECTOR(YourClassName) inside a private section of the class declaration. E.g.