]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/shared/bamtools_global.h
Cleanup missed by earlier "includes cleanup" commit
[bamtools.git] / src / shared / bamtools_global.h
index 4165740ef4cc03f3a86389bd2672f5d7ea1f106b..e37bff6e2293a5289ff0829e89c82087292a17f1 100644 (file)
@@ -2,7 +2,7 @@
 // bamtools_global.h (c) 2010 Derek Barnett
 // Marth Lab, Department of Biology, Boston College
 // ---------------------------------------------------------------------------
-// Last modified: 7 October 2011 (DB)
+// Last modified: 10 October 2011 (DB)
 // ---------------------------------------------------------------------------
 // Provides the basic definitions for exporting & importing library symbols.
 // Also provides some platform-specific rules for definitions.
 #  endif
 #endif // BAMTOOLS_TYPES
 
+//! \internal
 inline void bamtools_noop(void) { }
 
+/*! \brief Assert definitions
+    \internal
+*/
 #ifndef BAMTOOLS_ASSERTS
 #define BAMTOOLS_ASSERTS
-#  include <cassert>
-#  include <stdexcept>
 #  ifdef NDEBUG
-#    define BT_ASSERT_UNREACHABLE bamtools_noop()
+#    define BT_ASSERT_UNREACHABLE             bamtools_noop()
 #    define BT_ASSERT_X( condition, message ) bamtools_noop()
 #  else
-#    define BT_ASSERT_UNREACHABLE assert( false )
+#    include <cassert>
+#    include <stdexcept>
+#    define BT_ASSERT_UNREACHABLE             assert( false )
 #    define BT_ASSERT_X( condition, message ) if (!( condition )) { throw std::runtime_error( message ); }
 #  endif
 #endif // BAMTOOLS_ASSERTS