1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
--- a/src/dwgsim.c
+++ b/src/dwgsim.c
@@ -174,7 +174,7 @@
}
}
-void unreachable(char *message) {
+void unreachable_exit(char *message) {
fprintf(stderr, "\n[dwgsim_core] Error: %s\n", message);
exit(1);
}
@@ -700,7 +700,7 @@
case 0: strand[0] = (drand48() < 0.5) ? 1 : 0; break;
case 1: strand[0] = 0; break;
case 2: strand[0] = 1; break;
- default: unreachable("read strand was not between 0-2");
+ default: unreachable_exit("read strand was not between 0-2");
}
// set read two's strand
@@ -710,12 +710,12 @@
case ILLUMINA: strand[1] = 1 - strand[0]; break; // paired end for Illumina (opposite strand)
case SOLID:
case IONTORRENT: strand[1] = strand[0]; break; // mate pair for SOLiD and IonTorrent (same strand)
- default: unreachable("data type was not between 0-2");
+ default: unreachable_exit("data type was not between 0-2");
}
break;
case 1: strand[1] = strand[0]; break; // mate pair (same strand)
case 2: strand[1] = 1 - strand[0]; break; // paired end (opposite strand)
- default: unreachable("strandedness was not between 0-2");
+ default: unreachable_exit("strandedness was not between 0-2");
}
// generate the reads in base space
|