Move declaration before statements.

This commit is contained in:
Micah Cowan 2008-04-22 22:06:50 -07:00
parent 6b3234ca2a
commit 7fc6af0faf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-04-22 Alain Guibert <alguibert+bts@free.fr>
* test.h (mu_run_test): Move declaration before statements, for
C90 conformance.
2008-04-22 Mike Frysinger <vapier@gentoo.org>
* Makefile.am: Move @LIBS@ after other libraries, for better

View File

@ -34,8 +34,9 @@ as that of the covered work. */
#define mu_assert(message, test) do { if (!(test)) return message; } while (0)
#define mu_run_test(test) \
do { \
const char *message; \
puts("RUNNING TEST " #test "..."); \
const char *message = test(); \
message = test(); \
tests_run++; \
if (message) return message; \
puts("PASSED\n"); \