12#if __cpp_lib_stacktrace >= 202011
13#pragma message("std::stacktrace is available")
16#pragma message("std::stacktrace is NOT available, using boost::stacktrace instead")
17#include <boost/stacktrace.hpp>
20#include <boost/stacktrace.hpp>
31#if defined _WIN32 && __cpp_lib_stacktrace >= 202011
32 return to_string( std::stacktrace::current() );
34 return to_string( boost::stacktrace::stacktrace() );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRCameraOrientationPlugin.h:8
MRMESH_API void printStacktraceOnCrash()
Print stacktrace on application crash.
std::string getCurrentStacktraceInline()
Definition MRStacktrace.h:29