diff options
Diffstat (limited to 'stdafx.cpp')
-rw-r--r-- | stdafx.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/stdafx.cpp b/stdafx.cpp index 0d4d4346506..c61f9d1ab85 100644 --- a/stdafx.cpp +++ b/stdafx.cpp @@ -1,33 +1,33 @@ -// stdafx.cpp : source file that includes just the standard includes
-// db.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
-// TODO: reference any additional headers you need in STDAFX.H
-// and not in this file
-
-struct MyAsserts {
- MyAsserts() {
-
- }
-} myassertsstdafx;
-
-#undef assert
-
-#undef yassert
-#include "assert.h"
-
-void sayDbContext(const char *p = 0);
-
-void wasserted(const char *msg, const char *file, unsigned line) {
- problem() << "Assertion failure " << msg << ' ' << file << ' ' << line << endl;
- cout << "Assertion failure " << msg << endl;
- cout << ' ' << file << ' ' << line << endl;
- sayDbContext();
-}
-
-void asserted(const char *msg, const char *file, unsigned line) {
- wasserted(msg, file, line);
- throw AssertionException();
-}
+// stdafx.cpp : source file that includes just the standard includes +// db.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file + +struct MyAsserts { + MyAsserts() { + + } +} myassertsstdafx; + +#undef assert + +#undef yassert +#include "assert.h" + +void sayDbContext(const char *p = 0); + +void wasserted(const char *msg, const char *file, unsigned line) { + problem() << "Assertion failure " << msg << ' ' << file << ' ' << line << endl; + cout << "Assertion failure " << msg << endl; + cout << ' ' << file << ' ' << line << endl; + sayDbContext(); +} + +void asserted(const char *msg, const char *file, unsigned line) { + wasserted(msg, file, line); + throw AssertionException(); +} |