소스 검색

call abort() only when NDEBUG is not defined

ceriel 30 년 전
부모
커밋
af0e9371e9
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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);
 }