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