Pārlūkot izejas kodu

call abort() only when NDEBUG is not defined

ceriel 30 gadi atpakaļ
vecāks
revīzija
af0e9371e9
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      util/opt/util.c

+ 2 - 0
util/opt/util.c

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