瀏覽代碼

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