Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/giza-pp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'GIZA++-v2/myassert.cpp')
-rw-r--r--GIZA++-v2/myassert.cpp20
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
+