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 <hieuhoang@gmail.com>2014-01-13 18:37:05 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-01-13 18:37:05 +0400
commitb5558c36b85177bf282cb88edd3b899872b7a9b9 (patch)
tree5b1096b778359b49a4be4fef3190d08ea961329f /util
parent07902ca55036fe51c0b27cc98bbaaf39c26db7ff (diff)
get rid of all aborts
Diffstat (limited to 'util')
-rw-r--r--util/exception.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/exception.hh b/util/exception.hh
index 0298272bd..2fb00667f 100644
--- a/util/exception.hh
+++ b/util/exception.hh
@@ -83,6 +83,9 @@ template <class Except, class Data> typename Except::template ExceptionTag<Excep
#define UTIL_THROW(Exception, Modify) \
UTIL_THROW_BACKEND(NULL, Exception, , Modify);
+#define UTIL_THROW2(Modify) \
+ UTIL_THROW_BACKEND(NULL, util::Exception, , Modify);
+
#if __GNUC__ >= 3
#define UTIL_UNLIKELY(x) __builtin_expect (!!(x), 0)
#else