diff options
Diffstat (limited to 'stdafx.cpp')
-rw-r--r-- | stdafx.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/stdafx.cpp b/stdafx.cpp index c26ad91edc8..4b5a94a0188 100644 --- a/stdafx.cpp +++ b/stdafx.cpp @@ -12,3 +12,17 @@ struct MyAsserts { }
} myassertsstdafx;
+
+#undef assert
+
+#undef yassert
+#include "assert.h"
+
+void sayDbContext();
+
+void asserted(const char *msg, const char *file, unsigned line) {
+ cout << "Assertion failure " << msg << endl;
+ cout << ' ' << file << ' ' << line << endl;
+ sayDbContext();
+ throw AssertionException();
+}
|