call abort() only when NDEBUG is not defined
This commit is contained in:
parent
11682328eb
commit
af0e9371e9
1 changed files with 2 additions and 0 deletions
|
@ -29,7 +29,9 @@ error(s,a) char *s,*a; {
|
||||||
fprintf(stderr,": ");
|
fprintf(stderr,": ");
|
||||||
fprintf(stderr,s,a);
|
fprintf(stderr,s,a);
|
||||||
fprintf(stderr,"\n");
|
fprintf(stderr,"\n");
|
||||||
|
#ifndef NDEBUG
|
||||||
abort();
|
abort();
|
||||||
|
#endif
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue