00001 /* checkAssert.h 00002 */ 00003 #ifndef _CHECKASSERT_H 00004 #define _CHECKASSERT_H 00005 #include <cassert> 00006 00007 namespace osl 00008 { 00009 namespace checkmate 00010 { 00011 void checkAbort(const char *func, const char *file, int line, 00012 const char *exp); 00013 } // namespace checkmate 00014 } // namespace osl 00015 00016 #define check_assert(x) assert((x) || (checkAbort(__func__, __FILE__, __LINE__, #x),0)) 00017 00018 #endif /* _CHECKASSERT_H */ 00019 // ;;; Local Variables: 00020 // ;;; mode:c++ 00021 // ;;; c-basic-offset:2 00022 // ;;; End: