Line | |
---|
1 | /* Copyright (c) 1985 Ceriel J.H. Jacobs */
|
---|
2 |
|
---|
3 | # ifndef lint
|
---|
4 | static char rcsid[] = "$Header: /cvsup/minix/src/commands/yap/assert.c,v 1.1.1.1 2005/04/21 14:55:38 beng Exp $";
|
---|
5 | # endif
|
---|
6 |
|
---|
7 | # define _ASSERT_
|
---|
8 |
|
---|
9 | # include "in_all.h"
|
---|
10 | # include "assert.h"
|
---|
11 | # if DO_ASSERT
|
---|
12 | # include "output.h"
|
---|
13 | # include "term.h"
|
---|
14 |
|
---|
15 | /*
|
---|
16 | * Assertion fails. Tell me about it.
|
---|
17 | */
|
---|
18 |
|
---|
19 | VOID
|
---|
20 | badassertion(ass,f,l) char *ass, *f; {
|
---|
21 |
|
---|
22 | clrbline();
|
---|
23 | putline("Assertion \"");
|
---|
24 | putline(ass);
|
---|
25 | putline("\" failed ");
|
---|
26 | putline(f);
|
---|
27 | putline(", line ");
|
---|
28 | prnum((long) l);
|
---|
29 | putline(".\r\n");
|
---|
30 | flush();
|
---|
31 | resettty();
|
---|
32 | abort();
|
---|
33 | }
|
---|
34 | # endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.