20 #ifndef TESSERACT_TRAINING_TLOG_H_
21 #define TESSERACT_TRAINING_TLOG_H_
33 #define tlog(level, ...) { \
34 if (FLAGS_tlog_level >= level) { \
35 tprintf_internal(__VA_ARGS__); \
39 #define TLOG_IS_ON(level) (FLAGS_tlog_level >= level)
41 #define TLOG_FATAL(msg...) \
44 ASSERT_FAILED.error("", ABORT, "in file %s, line %d", \
45 __FILE__, __LINE__); \
49 #endif // TESSERACT_TRAINING_TLOG_H_
DECLARE_INT_PARAM_FLAG(tlog_level)