tesseract  3.04.00
tlog.h File Reference
#include "commandlineflags.h"
#include "errcode.h"
#include "tprintf.h"

Go to the source code of this file.

Macros

#define tlog(level, ...)
 
#define TLOG_IS_ON(level)   (FLAGS_tlog_level >= level)
 
#define TLOG_FATAL(msg...)
 

Functions

 DECLARE_INT_PARAM_FLAG (tlog_level)
 

Macro Definition Documentation

#define tlog (   level,
  ... 
)
Value:
{ \
if (FLAGS_tlog_level >= level) { \
tprintf_internal(__VA_ARGS__); \
} \
}

Definition at line 33 of file tlog.h.

#define TLOG_FATAL (   msg...)
Value:
{ \
tprintf(msg); \
ASSERT_FAILED.error("", ABORT, "in file %s, line %d", \
__FILE__, __LINE__); \
}
Definition: errcode.h:30

Definition at line 41 of file tlog.h.

#define TLOG_IS_ON (   level)    (FLAGS_tlog_level >= level)

Definition at line 39 of file tlog.h.

Function Documentation

DECLARE_INT_PARAM_FLAG ( tlog_level  )