X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Futils%2Fbamtools_utilities.h;h=d9a319271c1da6e856325cacc7371e20cc0a978a;hb=c1fc1c5423ca73a1b5bcbe790650821d73e5959c;hp=52098d0c4811c2977c360e573cd16c587b210551;hpb=72f5b82ad353b4cc9d6f8153f1ad19cc387b9597;p=bamtools.git diff --git a/src/utils/bamtools_utilities.h b/src/utils/bamtools_utilities.h index 52098d0..d9a3192 100644 --- a/src/utils/bamtools_utilities.h +++ b/src/utils/bamtools_utilities.h @@ -2,7 +2,7 @@ // bamtools_utilities.h (c) 2010 Derek Barnett, Erik Garrison // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- -// Last modified: 9 June 2011 +// Last modified: 8 September 2011 // --------------------------------------------------------------------------- // Provides general utilities used by BamTools sub-tools. // *************************************************************************** @@ -12,13 +12,11 @@ #include #include -#include -#include #include #include -#define BAMTOOLS_ASSERT_UNREACHABLE assert( false ) -#define BAMTOOLS_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message ); +#define BAMTOOLS_ASSERT_UNREACHABLE BT_ASSERT_UNREACHABLE +#define BAMTOOLS_ASSERT_MESSAGE( condition, message ) BT_ASSERT_X( condition, message ) namespace BamTools {