]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/shared/bamtools_global.h
Basic internal implementation of BamFile & BamPipe
[bamtools.git] / src / shared / bamtools_global.h
index 6e3cb39e5a69fca28ef2196cdb0407671e8805c0..6380bb07afe145decd3c13602685c724f9bf1d66 100644 (file)
     #endif
 #endif // BAMTOOLS_TYPES
 
+#include <cassert>
+#include <stdexcept>
+#ifndef BAMTOOLS_ASSERTS
+#define BT_ASSERT_UNREACHABLE assert( false )
+#define BT_ASSERT_X( condition, message ) if (!( condition )) throw std::runtime_error( message );
+#endif // BAMTOOLS_ASSERTS
+
 #endif // BAMTOOLS_GLOBAL_H