ack/lang/cem/libcc.ansi/assert/assert.c

16 lines
280 B
C
Raw Normal View History

1989-05-10 10:43:58 +00:00
/*
* assert.c - diagnostics
*/
/* $Header$ */
#include <assert.h>
1989-05-10 10:43:58 +00:00
#include <stdio.h>
#include <stdlib.h>
1989-05-10 10:43:58 +00:00
void __bad_assertion(const char *expr, const char *file, int line) {
1989-05-10 10:43:58 +00:00
fprintf(stderr,"Assertion \"%s\" failed, file \"%s\", line %d\n",
expr, file, line);
abort();
1989-05-10 10:43:58 +00:00
}