Go to the source code of this file.
Macro Definition Documentation
Value:if (!(x)) \
{ \
ASSERT_FAILED.error(#x,
ABORT,
"in file %s, line %d", \
__FILE__,__LINE__); \
}
Definition at line 84 of file errcode.h.
#define LOC_DOC_BLK_REJ 22 |
#define LOC_FUZZY_SPACE 14 |
#define LOC_TEXT_ORD_ROWS 5 |
#define LOC_TEXT_ORD_WORDS 6 |
#define LOC_WRITE_RESULTS 23 |
#define SUBSUBLOC_OTHER 0 |
Enumeration Type Documentation
- Enumerator:
DBG |
|
TESSLOG |
|
TESSEXIT |
|
ABORT |
|
Definition at line 26 of file errcode.h.
Function Documentation
void set_global_loc_code |
( |
int |
loc_code | ) |
|
void set_global_subloc_code |
( |
int |
loc_code | ) |
|
void set_global_subsubloc_code |
( |
int |
loc_code | ) |
|
void signal_exit |
( |
int |
signal_code | ) |
|
void signal_termination_handler |
( |
int |
sig | ) |
|
Definition at line 78 of file globaloc.cpp.
{
const ERRCODE SIGNAL_HANDLER_ERR =
"Signal_termination_handler called";
SIGNAL_HANDLER_ERR.
error(
"signal_termination_handler",
ABORT,
"Code %d", sig);
switch (sig) {
case SIGABRT:
case SIGSEGV:
case SIGFPE:
case SIGTERM:
default:
}
}
Variable Documentation
const ERRCODE ASSERT_FAILED = "Assert failed" |