]> git.donarmstrong.com Git - rsem.git/blobdiff - my_assert.h
Modified 'convert-sam-for-rsem' so that this program will convert users' SAM/BAM...
[rsem.git] / my_assert.h
index 74f0299895a50d5f30700eb4bee2be00c54d84f0..02844e1baa3271f6da9e3933c29b1881b11c0824 100644 (file)
@@ -31,9 +31,10 @@ std::string cstrtos(const char* s) {
 }
 
 
-void general_assert(int expr, const std::string& errmsg) {
+void general_assert(int expr, const std::string& errmsg, bool putEnter = false) {
        if (expr) return;
 
+       if (putEnter) printf("\n");
        fprintf(stderr, "%s\n", errmsg.c_str());
        exit(-1);
 }