aboutsummaryrefslogtreecommitdiff
path: root/scripts/shared/macros.h
blob: f4c3623dbd0b983e85f3f7e3cd752e9fc61eb87b (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(__VA_ARGS__)
#endif /* DEBUG */