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
| 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 |
| 39 | MRMESH_API void printStacktraceOnCrash(); |
no outgoing calls
no test coverage detected