MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / captureBacktrace

Function captureBacktrace

source/core/StarException_unix.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#ifdef STAR_USE_CPPTRACE
15
16static inline std::string captureBacktrace() {
17 auto formatter = cpptrace::formatter{}
18 .paths(cpptrace::formatter::path_mode::basename);
19 std::ostringstream out;
20 formatter.print(out, cpptrace::generate_trace());
21 return out.str();
22}
23
24#endif
25

Callers 4

StarExceptionMethod · 0.85
printStackFunction · 0.85
fatalErrorFunction · 0.85
fatalExceptionFunction · 0.85

Calls 2

printMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected