Go to the source code of this file.
◆ ASSERT_HOST
Value:if (!(x)) \
{ \
ASSERT_FAILED.error(#x,
ABORT,
"in file %s, line %d", \
__FILE__, __LINE__); \
}
Definition at line 84 of file errcode.h.
◆ ASSERT_HOST_MSG
#define ASSERT_HOST_MSG |
( |
|
x, |
|
|
|
... |
|
) |
| |
Value:if (!(x)) { \
tprintf(__VA_ARGS__); \
ASSERT_FAILED.error(#x,
ABORT,
"in file %s, line %d", __FILE__, __LINE__); \
}
Definition at line 90 of file errcode.h.
◆ FILE_ABORT
◆ LIST_ABORT
◆ LOC_ADAPTIVE
◆ LOC_DOC_BLK_REJ
#define LOC_DOC_BLK_REJ 22 |
◆ LOC_EDGE_PROG
◆ LOC_FUZZY_SPACE
#define LOC_FUZZY_SPACE 14 |
◆ LOC_INIT
◆ LOC_MM_ADAPT
◆ LOC_PASS1
◆ LOC_PASS2
◆ LOC_TEXT_ORD_ROWS
#define LOC_TEXT_ORD_ROWS 5 |
◆ LOC_TEXT_ORD_WORDS
#define LOC_TEXT_ORD_WORDS 6 |
◆ LOC_UNUSED0
◆ LOC_UNUSED1
◆ LOC_UNUSED2
◆ LOC_WRITE_RESULTS
#define LOC_WRITE_RESULTS 23 |
◆ MEMORY_ABORT
◆ NO_ABORT_CODE
◆ SUBLOC_FIX_XHT
◆ SUBLOC_NORM
◆ SUBSUBLOC_NN
◆ SUBSUBLOC_OTHER
#define SUBSUBLOC_OTHER 0 |
◆ SUBSUBLOC_TESS
◆ TessErrorLogCode
Enumerator |
---|
DBG | |
TESSLOG | |
TESSEXIT | |
ABORT | |
Definition at line 26 of file errcode.h.
◆ set_global_loc_code()
void set_global_loc_code |
( |
int |
loc_code | ) |
|
◆ set_global_subloc_code()
void set_global_subloc_code |
( |
int |
loc_code | ) |
|
◆ set_global_subsubloc_code()
void set_global_subsubloc_code |
( |
int |
loc_code | ) |
|
◆ signal_exit()
void signal_exit |
( |
int |
signal_code | ) |
|
Definition at line 53 of file globaloc.cpp.
54 tprintf(
"Received signal %d!\n", signal_code);
61 if (global_crash_pixes[thread_id] !=
nullptr) {
62 fprintf(stderr,
"Crash caused by image with resolution %d\n",
63 pixGetYRes(global_crash_pixes[thread_id]));
64 fprintf(stderr,
"<Cut here>\n");
65 pixWriteStreamPng(stderr, global_crash_pixes[thread_id], 0.0);
66 fprintf(stderr,
"\n<End cut>\n");
const int kMaxNumThreadPixes
DLLSYM void tprintf(const char *format,...)
◆ ASSERT_FAILED
const ERRCODE ASSERT_FAILED = "Assert failed" |