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

Go to the source code of this file.

Classes

class  tesseract::ERRCODE
 

Namespaces

namespace  tesseract
 

Macros

#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 35 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 54 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 57 of file errcode.h.

◆ DO_NOTHING

#define DO_NOTHING   static_cast<void>(0)

Definition at line 52 of file errcode.h.