40 const char *format, ...
46 if (caller !=
nullptr)
48 msgptr += sprintf (msgptr,
"%s:", caller);
50 msgptr += sprintf (msgptr,
"Error:%s", message);
51 if (format !=
nullptr) {
52 msgptr += sprintf (msgptr,
":");
53 va_start(args, format);
56 msgptr += _vsnprintf (msgptr,
MAX_MSG - 2 - (msgptr - msg), format, args);
61 msgptr += vsprintf (msgptr, format, args);
63 msgptr += sprintf (msgptr,
"\n");
69 msgptr += sprintf (msgptr,
"\n");
72 fprintf(stderr,
"%s", msg);
85 *
reinterpret_cast<int*
>(0) = 0;
const ERRCODE BADERRACTION
void error(const char *caller, TessErrorLogCode action, const char *format,...) const