#include <errcode.h>
Definition at line 69 of file errcode.h.
◆ ERRCODE()
ERRCODE::ERRCODE |
( |
const char * |
string | ) |
|
|
inline |
◆ error()
void ERRCODE::error |
( |
const char * |
caller, |
|
|
TessErrorLogCode |
action, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| const |
Definition at line 40 of file errcode.cpp.
51 msgptr += sprintf (msgptr,
"%s:", caller);
53 msgptr += sprintf (msgptr,
"Error:%s", message);
55 msgptr += sprintf (msgptr,
":");
56 va_start(args, format);
59 msgptr += _vsnprintf (msgptr,
MAX_MSG - 2 - (msgptr - msg), format, args);
64 msgptr += vsprintf (msgptr, format, args);
66 msgptr += sprintf (msgptr,
"\n");
72 msgptr += sprintf (msgptr,
"\n");
75 fprintf(stderr,
"%s", msg);
const ERRCODE BADERRACTION
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
The documentation for this class was generated from the following files: