1989-05-10 10:43:58 +00:00
|
|
|
/*
|
|
|
|
* assert.c - diagnostics
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1989-05-10 10:43:58 +00:00
|
|
|
|
1989-12-18 14:44:38 +00:00
|
|
|
#include <assert.h>
|
1989-05-10 10:43:58 +00:00
|
|
|
#include <stdio.h>
|
1989-12-18 14:44:38 +00:00
|
|
|
#include <stdlib.h>
|
1989-05-10 10:43:58 +00:00
|
|
|
|
1990-04-03 15:01:58 +00:00
|
|
|
void __bad_assertion(const char *mess) {
|
1989-05-10 10:43:58 +00:00
|
|
|
|
1990-04-03 15:01:58 +00:00
|
|
|
fputs(mess, stderr);
|
1989-12-18 14:44:38 +00:00
|
|
|
abort();
|
1989-05-10 10:43:58 +00:00
|
|
|
}
|