call abort() only when NDEBUG is not defined

This commit is contained in:
ceriel 1994-02-25 14:01:54 +00:00
parent f1847c8a28
commit ebdcf062ec

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