aboutsummaryrefslogtreecommitdiff
path: root/testing.h
diff options
context:
space:
mode:
Diffstat (limited to 'testing.h')
-rw-r--r--testing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing.h b/testing.h
index f27daf2..cb40294 100644
--- a/testing.h
+++ b/testing.h
@@ -1,4 +1,7 @@
+#include <stdio.h>
+
#define t_assert(fact) \
if (!(fact)) { \
+ fprintf(stderr, "Assertion failed: %s at %s:%d in %s()\n", #fact, __FILE__, __LINE__, __func__); \
return 1; \
}