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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2014-01-05 22:19:51 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-01-05 22:19:51 +0400
commit1431cc5688ebacbb9729e4e2861987c3db07c414 (patch)
tree226abec8e4f00184201683d668840dab98cb56e2 /util
parenteb5112f09ebdfa574cbb1e5f6df500dc022d4238 (diff)
delete check.hh
Diffstat (limited to 'util')
-rw-r--r--util/check.hh21
1 files changed, 0 insertions, 21 deletions
diff --git a/util/check.hh b/util/check.hh
deleted file mode 100644
index 2c63b5630..000000000
--- a/util/check.hh
+++ /dev/null
@@ -1,21 +0,0 @@
-/* People have been abusing assert by assuming it will always execute. To
- * rememdy the situation, asserts were replaced with CHECK. These should then
- * be manually replaced with assert (when used correctly) or UTIL_THROW (for
- * runtime checks).
- */
-#ifndef UTIL_CHECK__
-#define UTIL_CHECK__
-
-#include <stdlib.h>
-#include <iostream>
-
-#include <cassert>
-
-#define CHECK(Condition) do { \
- if (!(Condition)) { \
- std::cerr << "Check " << #Condition << " failed in " << __FILE__ << ":" << __LINE__ << std::endl; \
- abort(); \
- } \
-} while (0) // swallow ;
-
-#endif // UTIL_CHECK__