]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/shared/bamtools_global.h
Merge branches 'master' and 'iodevice' into iodevice
[bamtools.git] / src / shared / bamtools_global.h
index e9181ce0af412169225ae11b7d6e4b1ce1c38ef0..1b2a8af7834f7445d193f2bff5d14fb75ac22fe6 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