diff options
Diffstat (limited to 'GIZA++-v2/myassert.cpp')
-rw-r--r-- | GIZA++-v2/myassert.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/GIZA++-v2/myassert.cpp b/GIZA++-v2/myassert.cpp new file mode 100644 index 0000000..2d49be8 --- /dev/null +++ b/GIZA++-v2/myassert.cpp @@ -0,0 +1,20 @@ +#include "mystl.h" +#include <iostream> +#include "myassert.h" + +#ifndef STANDARD_ASSERT +void myerror(int line,const char *file,const char *expression) +{ + cerr << "(general.h):Assertion failed: '" << expression << "' ::: b " + << file << ":" << line << endl; + cout << "(general.h):Assertion failed: '" << expression << "' ::: b " + << file << ":" << line << endl; +} +void imyerror(int line,const char *file,const char *expression) +{ + cerr << "Error: '" << expression << "' ::: in Source " << file + << ":" << line << endl; +} + +#endif + |