#include <errcode.h>
Definition at line 67 of file errcode.h.
◆ ERRCODE()
constexpr ERRCODE::ERRCODE |
( |
const char * |
string | ) |
|
|
inlineconstexpr |
◆ error()
void ERRCODE::error |
( |
const char * |
caller, |
|
|
TessErrorLogCode |
action, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| const |
Definition at line 33 of file errcode.cpp.
44 if (caller !=
nullptr)
46 msgptr += sprintf (msgptr,
"%s:", caller);
48 msgptr += sprintf (msgptr,
"Error:%s", message);
49 if (format !=
nullptr) {
50 msgptr += sprintf (msgptr,
":");
51 va_start(args, format);
54 msgptr += _vsnprintf (msgptr,
MAX_MSG - 2 - (msgptr - msg), format, args);
59 msgptr += vsprintf (msgptr, format, args);
61 msgptr += sprintf (msgptr,
"\n");
67 msgptr += sprintf (msgptr,
"\n");
70 fprintf(stderr,
"%s", msg);
85 *reinterpret_cast<int*>(0) = 0;
The documentation for this class was generated from the following files: