| 1 | /* see http://www.jera.com/techinfo/jtns/jtn002.html */ |
| 2 | /* code modified to compile without warnings [phf] */ |
| 3 | #define mu_assert(message, test) \ |
| 4 | do { if (!(test)) return message; } while (0) |
| 5 | #define mu_run_test(test) \ |
| 6 | do { const char *message = test(); tests_run++; \ |
| 7 | if (message) return message; } while (0) |
| 8 | extern int tests_run; |