mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Random code: Exceptions and outut
This commit is contained in:
parent
c787fa8dec
commit
9db627471f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user