Commit 271ea13d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Merge branch 'JK/backtrace' into 'develop'

Removed NDEBUG macros from StackBacktrace.h

See merge request !129
parents 7055f9e6 deb9a8af
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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