Retro68/gcc/newlib/testsuite/include/check.h

12 lines
209 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
#include <stdio.h>
#include <stdlib.h>
#define CHECK(a) { \
if (!(a)) \
{ \
printf ("Failed " #a " in <%s> at line %d\n", __FILE__, __LINE__); \
fflush(stdout); \
abort(); \
} \
}