33 #define NO_ABORT_CODE 0 35 #define MEMORY_ABORT 2 43 #define LOC_EDGE_PROG 4 44 #define LOC_TEXT_ORD_ROWS 5 45 #define LOC_TEXT_ORD_WORDS 6 49 #define LOC_FUZZY_SPACE 14 51 #define LOC_MM_ADAPT 21 52 #define LOC_DOC_BLK_REJ 22 53 #define LOC_WRITE_RESULTS 23 54 #define LOC_ADAPTIVE 24 59 #define SUBLOC_FIX_XHT 3 64 #define SUBSUBLOC_OTHER 0 65 #define SUBSUBLOC_TESS 1 66 #define SUBSUBLOC_NN 2 74 const char *format, ...
76 constexpr
ERRCODE(
const char *
string) : message(string) {
82 #if defined __cplusplus 83 # define DO_NOTHING static_cast<void>(0) 85 # define DO_NOTHING (void)(0) 88 #define ASSERT_HOST(x) (x) \ 90 : ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__) 92 #define ASSERT_HOST_MSG(x, ...) \ 94 tprintf(__VA_ARGS__); \ 95 ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__); \ constexpr ERRCODE(const char *string)
void set_global_loc_code(int loc_code)
constexpr ERRCODE ASSERT_FAILED("Assert failed")
void set_global_subloc_code(int loc_code)
void signal_exit(int signal_code)
void set_global_subsubloc_code(int loc_code)