small cleanup, makefile preparation for calcdiff

This commit is contained in:
cathugger
2019-12-22 22:01:26 +02:00
parent 451c9610aa
commit 9032811fc5
3 changed files with 52 additions and 38 deletions

5
testutil.h Normal file
View File

@@ -0,0 +1,5 @@
#define WARN(test) if (!(test)) \
fprintf(stderr, "check failed @ %d: %s\n", (int)__LINE__, #test)
#define WARNF(test) if (!(test) && ((void) fprintf(stderr, "check failed @ %d: %s\n", (int)__LINE__, #test), 1))