diff options
Diffstat (limited to 'FICS/assert_error.c')
-rw-r--r-- | FICS/assert_error.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FICS/assert_error.c b/FICS/assert_error.c new file mode 100644 index 0000000..2d26491 --- /dev/null +++ b/FICS/assert_error.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include <stdlib.h> + +#include "assert_error.h" + +__dead void +_assert_error(const char *file, const long int line) +{ + (void) fprintf(stderr, "Assertion failed: file %s, line %ld.\n", + file, line); + abort(); +} |