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

Function DisplayFormatError

Source/Internal/error.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60ErrorResponse DisplayFormatError(ErrorType type,
61 bool allow_repetition,
62 const char* title,
63 const char* fmtcontents,
64 ...) {
65 static const int kBufSize = 2048;
66 char err_buf[kBufSize];
67 va_list args;
68 va_start(args, fmtcontents);
69 VFormatString(err_buf, kBufSize, fmtcontents, args);
70 va_end(args);
71 return DisplayError(title, err_buf, type, allow_repetition);
72}
73
74struct ErrorDisplay {
75 int id;

Callers

nothing calls this directly

Calls 2

VFormatStringFunction · 0.85
DisplayErrorFunction · 0.70

Tested by

no test coverage detected