-/*
- * you don't need to pay any attention to what's next, unless you want to do
- * some customization, of course, in which case, you're encouraged to take
- * a look an play =)
- */
-
-/* verbosity level (each level shows all the previous levels too) */
-enum {
- MU_QUIET = 0, /* be completely quiet */
- MU_ERROR, /* shows errors only */
- MU_SUMMARY, /* shows a summary */
- MU_SUITE, /* shows test suites progress */
- MU_CASE, /* shows test cases progress */
- MU_CHECK /* shows the current running check */
-};
-
-/* print a message according to the verbosity level */
-#define mu_print(level, ...) \
- do { \
- if (mutest_verbose_level >= level) { \
- if (mutest_verbose_level == MU_ERROR) \
- fprintf(stderr, __VA_ARGS__); \
- else \
- fprintf(stdout, __VA_ARGS__); \
- } \
- } while (0)