aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig_parser/macros.h
blob: 13a5d43ee5866c48cc8fe5d1b4b948f366040700 (plain)
1
2
3
4
5
6
7
8
9
10
11
extern int verbose_level; // Defined in kconfig_parser.c

#define Eprintf(...) printf(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 */