1 /* $Id: BadAssert.c,v 1.6 1994/06/24 11:07:07 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* _BadAssertion: used for debugging purposes. It should give an error message
7 indicated by the parameters, and then give a core dump
23 s[0] = (n % 10) + '0';
28 _BadAssertion(file, lineno, assertion)
29 char *file, *assertion;
33 sys_write(STDERR, file, strlen(file));
34 sys_write(STDERR, ", line ", 7);
35 wr_num(STDERR, lineno);
36 sys_write(STDERR, ": assertion \"", 13);
37 sys_write(STDERR, assertion, strlen(assertion));
38 sys_write(STDERR, "\" failed\n", 9);