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

Function printStack

source/core/StarException_unix.cpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void printStack(char const* message) {
145#ifdef STAR_USE_CPPTRACE
146 Logger::info("Stack Trace ({})...\n{}", message, captureBacktrace());
147#else
148 Logger::info("Stack Trace ({})...\n{}", message, outputStack(captureStack()));
149#endif
150}
151
152void fatalError(char const* message, bool showStackTrace) {
153 if (showStackTrace)

Callers 5

lockMethod · 0.70
tryLockMethod · 0.70
unlockMethod · 0.70
lockFunction · 0.70

Calls 3

captureBacktraceFunction · 0.85
outputStackFunction · 0.70
captureStackFunction · 0.70

Tested by

no test coverage detected