From 98625d66f0e1b6ab85e0aeeb345cdccbdbc9f5da Mon Sep 17 00:00:00 2001 From: conrad Date: Fri, 22 Apr 2022 15:36:28 +1000 Subject: [PATCH] fix --- include/armadillo_bits/debug.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/armadillo_bits/debug.hpp b/include/armadillo_bits/debug.hpp index 024323b7..188e204b 100644 --- a/include/armadillo_bits/debug.hpp +++ b/include/armadillo_bits/debug.hpp @@ -389,6 +389,12 @@ arma_warn(const T1& arg1, const T2& arg2, const T3& arg3, const T4& arg4) // arma_warn_level +#if defined(ARMA_EXTRA_DEBUG) + #undef ARMA_WARN_LEVEL + #define ARMA_WARN_LEVEL 3 +#endif + + template inline void @@ -1368,19 +1374,16 @@ arma_assert_atlas_size(const T1& A, const T2& B) #if defined(ARMA_EXTRA_DEBUG) - #undef ARMA_WARN_LEVEL - #define ARMA_WARN_LEVEL 3 - #define arma_extra_debug_sigprint arma_sigprint(ARMA_FNSIG); arma_bktprint #define arma_extra_debug_sigprint_this arma_sigprint(ARMA_FNSIG); arma_thisprint #define arma_extra_debug_print arma_print - + #else #define arma_extra_debug_sigprint true ? (void)0 : arma_bktprint #define arma_extra_debug_sigprint_this true ? (void)0 : arma_thisprint #define arma_extra_debug_print true ? (void)0 : arma_print - + #endif