diff options
Diffstat (limited to 'testing.h')
| -rw-r--r-- | testing.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; \ } |
