repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git]
/
commands
/
yap
/
assert.c
blob
d89cb008fe9a8ac0abe7d24bd5a8b55b85765cd6
1
/* Copyright (c) 1985 Ceriel J.H. Jacobs */
2
3
# ifndef lint
4
static char
rcsid
[] =
"$Header$"
;
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