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

Function fatalError

source/core/StarException_unix.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void fatalError(char const* message, bool showStackTrace) {
153 if (showStackTrace)
154#ifdef STAR_USE_CPPTRACE
155 Logger::error("Fatal Error: {}\n{}", message, captureBacktrace());
156#else
157 Logger::error("Fatal Error: {}\n{}", message, outputStack(captureStack()));
158#endif
159 else
160 Logger::error("Fatal Error: {}", message);
161
162 std::abort();
163}
164
165void fatalException(std::exception const& e, bool showStackTrace) {
166 if (showStackTrace)

Callers 4

handleFatalMethod · 0.70
sehTrampolineMethod · 0.70
runMainApplicationFunction · 0.50

Calls 4

errorFunction · 0.85
captureBacktraceFunction · 0.85
outputStackFunction · 0.70
captureStackFunction · 0.70

Tested by

no test coverage detected