tesseract  5.0.0
errcode.h File Reference
#include <tesseract/export.h>

Go to the source code of this file.

Classes

class  tesseract::ERRCODE
 

Namespaces

 tesseract
 

Macros

#define NO_ABORT_CODE   0
 
#define LIST_ABORT   1
 
#define MEMORY_ABORT   2
 
#define FILE_ABORT   3
 
#define __attribute__(attr)
 
#define DO_NOTHING   static_cast<void>(0)
 
#define ASSERT_HOST(x)    (x) ? DO_NOTHING : ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__)
 
#define ASSERT_HOST_MSG(x, ...)
 

Enumerations

enum  tesseract::TessErrorLogCode { tesseract::DBG = -1 , tesseract::TESSLOG = 0 , tesseract::TESSEXIT = 1 , tesseract::ABORT = 2 }
 

Functions

constexpr ERRCODE tesseract::ASSERT_FAILED ("Assert failed")
 

Macro Definition Documentation

◆ __attribute__

#define __attribute__ (   attr)

Definition at line 41 of file errcode.h.

◆ ASSERT_HOST

#define ASSERT_HOST (   x)     (x) ? DO_NOTHING : ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", __FILE__, __LINE__)

Definition at line 59 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__); \
}
@ ABORT

Definition at line 62 of file errcode.h.

◆ DO_NOTHING

#define DO_NOTHING   static_cast<void>(0)

Definition at line 57 of file errcode.h.

◆ FILE_ABORT

#define FILE_ABORT   3

Definition at line 38 of file errcode.h.

◆ LIST_ABORT

#define LIST_ABORT   1

Definition at line 36 of file errcode.h.

◆ MEMORY_ABORT

#define MEMORY_ABORT   2

Definition at line 37 of file errcode.h.

◆ NO_ABORT_CODE

#define NO_ABORT_CODE   0

Definition at line 35 of file errcode.h.