MCPcopy Create free account
hub / github.com/KDAB/GammaRay / error

Function error

3rdparty/backward-cpp/test/_test_main.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#endif
52
53void error(int status, int errnum, const char *format, ...) {
54 fflush(stdout);
55 fprintf(stderr, "%s: ", getprogname());
56
57 va_list args;
58 va_start(args, format);
59 vfprintf(stderr, format, args);
60 va_end(args);
61
62 if (errnum != 0) {
63 fprintf(stderr, ": %s\n", strerror(errnum));
64 } else {
65 fprintf(stderr, "\n");
66 }
67 if (status != 0) {
68 exit(status);
69 }
70}
71#endif
72
73using namespace test;

Callers 2

run_testFunction · 0.85
checkProbesMethod · 0.85

Calls 1

getprognameFunction · 0.85

Tested by

no test coverage detected