From deb9a8af3254617e0c15e478c690d432ad30ee93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Thu, 10 Mar 2022 10:55:38 +0100 Subject: [PATCH] Removed NDEBUG macros from StackBacktrace.h Sometimes it makes sense to print the backtrace regardless of NDEBUG, it is the user's choice. --- src/TNL/Debugging/StackBacktrace.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/TNL/Debugging/StackBacktrace.h b/src/TNL/Debugging/StackBacktrace.h index 6debbc8b9..5f5097781 100644 --- a/src/TNL/Debugging/StackBacktrace.h +++ b/src/TNL/Debugging/StackBacktrace.h @@ -15,7 +15,6 @@ namespace TNL { namespace Debugging { -#ifndef NDEBUG /* * Print a demangled stack backtrace of the caller function to FILE* out. * @@ -79,13 +78,6 @@ printStackBacktrace( std::ostream& out = std::cout, unsigned int max_frames = 64 } } } -#endif } // namespace Debugging } // namespace TNL - -#ifdef NDEBUG - #define PrintStackBacktrace -#else - #define PrintStackBacktrace TNL::Debugging::printStackBacktrace(); -#endif -- GitLab