aboutsummaryrefslogtreecommitdiff
path: root/scripts/shared/macros.h
blob: 2aa0c4bcf420cc65a90efbe6fc333884b0f09a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern int verbose_level; // Must be defined in project

#define Eprintf(...) fprintf(stderr, __VA_ARGS__)
#define Wprintf(...) if (verbose_level > 1) printf(__VA_ARGS__)
#define Iprintf(...) if (verbose_level > 2) printf(__VA_ARGS__)

#ifndef DEBUG
#define Dprintf(...)
#else
#define Dprintf(...) if (verbose_level > 3) printf(a, __VA_ARGS__)
#endif /* DEBUG */