#define DEBUG_FLAG_LIST \
DF(ocr) \
DF(rect) \
- DF(callout)
+ DF(callout) \
+ DF(pages)
enum {
#define DF(f) dbg__shift_##f,
const char *get_vardir(void);
+#define DEBUG_DEFINE_DEBUGF(f) \
+ static void vdebugf(const char *fmt, va_list al) { \
+ if (DEBUGP(f)) \
+ vfprintf(debug,fmt,al); \
+ } \
+ static void debugf(const char *fmt, ...) { \
+ va_list al; va_start(al,fmt); vdebugf(fmt,al); va_end(al); \
+ }
+
#endif /*OCR_H*/