X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fshared%2Fbamtools_global.h;h=1b2a8af7834f7445d193f2bff5d14fb75ac22fe6;hb=c1fc1c5423ca73a1b5bcbe790650821d73e5959c;hp=e9181ce0af412169225ae11b7d6e4b1ce1c38ef0;hpb=72f5b82ad353b4cc9d6f8153f1ad19cc387b9597;p=bamtools.git diff --git a/src/shared/bamtools_global.h b/src/shared/bamtools_global.h index e9181ce..1b2a8af 100644 --- a/src/shared/bamtools_global.h +++ b/src/shared/bamtools_global.h @@ -75,4 +75,11 @@ #endif #endif // BAMTOOLS_TYPES +#include +#include +#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