aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.h
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2015-06-04 00:36:41 +0800
committerDimitry <winsvega@mail.ru>2015-06-17 22:01:31 +0800
commit9db627471fe32c4ca1da4c4be1101792bd6ae18b (patch)
tree46eda0a9ed1efd44c018e49d67a278bd23eb73e0 /TestHelper.h
parentc787fa8decd9c43788b7331947c9d336b7861bcd (diff)
downloaddexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar.gz
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar.bz2
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar.lz
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar.xz
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.tar.zst
dexon-solidity-9db627471fe32c4ca1da4c4be1101792bd6ae18b.zip
Random code: Exceptions and outut
Diffstat (limited to 'TestHelper.h')
-rw-r--r--TestHelper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/TestHelper.h b/TestHelper.h
index eaeed619..649d4adf 100644
--- a/TestHelper.h
+++ b/TestHelper.h
@@ -33,10 +33,10 @@
#define DONTUSE_BOOST_MACROS
#ifdef DONTUSE_BOOST_MACROS
- #define TBOOST_THROW_EXCEPTION(arg) throw;
- #define TBOOST_REQUIRE(arg) if(arg == false) throw;
- #define TBOOST_CHECK_MESSAGE(arg1, arg2) if(arg1 == false) throw;
- #define TBOOST_WARN_MESSAGE(arg1, arg2) throw;
+ #define TBOOST_THROW_EXCEPTION(arg) throw dev::Exception();
+ #define TBOOST_REQUIRE(arg) if(arg == false) throw dev::Exception();
+ #define TBOOST_CHECK_MESSAGE(arg1, arg2) if(arg1 == false) throw dev::Exception();
+ #define TBOOST_WARN_MESSAGE(arg1, arg2) throw dev::Exception();
#else
#define TBOOST_THROW_EXCEPTION(arg) BOOST_THROW_EXCEPTION(arg)
#define TBOOST_REQUIRE(arg) BOOST_REQUIRE(arg)