call abort() only when NDEBUG is not defined

This commit is contained in:
ceriel 1994-02-25 14:01:54 +00:00
parent 11682328eb
commit af0e9371e9

View file

@ -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);
}