#ifndef ARTIFEX_EXTRACT_OUTF_H #define ARTIFEX_EXTRACT_OUTF_H /* Only for internal use by extract code. */ void (outf)( int level, const char* file, int line, const char* fn, int ln, const char* format, ... ); /* Outputs text if is less than or equal to verbose value set by outf_level_set(). */ #define outf(format, ...) \ (outf)(1, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__) #define outf0(format, ...) \ (outf)(0, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__) #define outfx(format, ...) /* Simple printf-style debug output. */ #define outfx(format, ...) void outf_verbose_set(int verbose); /* Set verbose value. Higher values are more verbose. Initial value is 0. */ #endif