MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / getCurrentStacktraceInline

Function getCurrentStacktraceInline

source/MRMesh/MRStacktrace.h:29–36  ·  view source on GitHub ↗

returns string representation of the current stacktrace; the function is inlined, to put the code in any shared library; if std::stacktrace is first called from MRMesh.dll then it is not unloaded propely

Source from the content-addressed store, hash-verified

27/// the function is inlined, to put the code in any shared library;
28/// if std::stacktrace is first called from MRMesh.dll then it is not unloaded propely
29[[nodiscard]] inline std::string getCurrentStacktraceInline()
30{
31#if defined _WIN32 && __cpp_lib_stacktrace >= 202011
32 return to_string( std::stacktrace::current() );
33#else
34 return to_string( boost::stacktrace::stacktrace() );
35#endif
36}
37
38/// Print stacktrace on application crash
39MRMESH_API void printStacktraceOnCrash();

Callers 3

WinMainFunction · 0.85
getCurrentStacktraceFunction · 0.85
crashSignalHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected