aboutsummaryrefslogtreecommitdiff
path: root/common.h
blob: 935b11f314b40b2b06b89ef94fcbb1fb530b9980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _COMMON_H
#define _COMMON_H

#include <libintl.h>
#define _(X) gettext(X)

#ifdef DISABLE_DEBUG
#define DEBUG(fmt)
#define DEBUGF(fmt, ...)
#else
#define DEBUG(fmt, ...) do { fprintf(stdout, fmt); } while (0)
#define DEBUGF(fmt, ...) do { fprintf(stdout, fmt, __VA_ARGS__); } while (0)
#endif

#endif // _COMMON_H