Generated on Mon Jun 23 16:24:56 2008 for BIU-1.7.0 by doxygen 1.5.1

src/biu/assertbiu.hh

Go to the documentation of this file.
00001 #ifndef ASSERT_BIU_HH
00002 #define ASSERT_BIU_HH
00003 
00004 #ifdef NDEBUG
00005     #define assertbiu(EXPR,MSG) ((void)0)
00006 #else
00007     #include <cassert>
00008     #include <iostream>
00009     
00013     #define assertbiu(EXPR,MSG) \
00014             ( (EXPR) || \
00015               ( (std::cerr<<"\n\tASSERT FAILED : " <<MSG <<"\n\n") \
00016                 && (assert(EXPR), 0)) \
00017             )
00018 
00019 #endif // NDEBUG
00020 
00021 #endif // ASSERT_BIU_HH