MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / FatalError

Function FatalError

Source/Internal/error.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44extern Config config;
45
46void FatalError(const char* title, const char* fmt, ...) {
47 static const int kBufSize = 1024;
48 char err_buf[kBufSize];
49 va_list args;
50 va_start(args, fmt);
51 VFormatString(err_buf, kBufSize, fmt, args);
52 va_end(args);
53 DisplayError(title, err_buf, _ok);
54 LOGF << "Showing fatal message: " << title << "," << err_buf << std::endl;
55 LOGF << "Shutting down after fatal error" << std::endl;
56 LogSystem::Flush();
57 _exit(1);
58}
59
60ErrorResponse DisplayFormatError(ErrorType type,
61 bool allow_repetition,

Callers 15

InitMethod · 0.70
DisposeMethod · 0.70
LoadMethod · 0.70
AddFileMethod · 0.70
ZipFunction · 0.70
do_extract_currentfileFunction · 0.70
ExtractMethod · 0.70
PrintInfoMethod · 0.70
ExtractAllMethod · 0.70
GetDateModifiedStringFunction · 0.70
GetDateModifiedInt64Function · 0.70
ChecksumFunction · 0.70

Calls 3

VFormatStringFunction · 0.85
FlushFunction · 0.85
DisplayErrorFunction · 0.70

Tested by

no test coverage detected