12 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
32 typedef void (*DtAssertFunc)
33 (
const char* fName,
const char *func,
int fLine,
const char*operation);
48 static DtAssertFunc getAssertFunction();
49 static void setAssertFunction(DtAssertFunc func);
64 static void defaultFatal(
const char* file,
const char *func,
int line,
const char *operation);
65 static void defaultNonFatal(
const char* file,
const char *func,
int line,
const char *operation);
82 #define __DTFUNC__ __PRETTY_FUNCTION__
83 #elif defined(_WIN32) && (_MSC_VER != 1200)
84 #define __DTFUNC__ __FUNCTION__
86 #define __DTFUNC__ "-Unknown Function-"
100 #define DtAssert(a) \
101 ((DtAssert::theAssertFunction != DtAssert::theNoAssertFunction && !(a)) ? \
102 DtAssert::theAssertFunction(__FILE__,__DTFUNC__, __LINE__, #a) : ((void)0 ) )
105 #ifdef DtUSE_UTILITIES_NAMESPACE