tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/training/tlog.h File Reference
#include "commandlineflags.h"
#include "errcode.h"
#include "tprintf.h"

Go to the source code of this file.

Defines

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

Functions

 DECLARE_INT_PARAM_FLAG (tlog_level)

Define 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 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  )
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines