mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C++ namespace cleanup (except tests).
This commit is contained in:
committed by
Daniel Kirchner
parent
8385256bdc
commit
6b23412fae
+3
-3
@@ -23,16 +23,16 @@
|
||||
#include <libdevcore/Exceptions.h>
|
||||
#include <libdevcore/Assertions.h>
|
||||
|
||||
namespace yul
|
||||
namespace solidity::yul
|
||||
{
|
||||
|
||||
struct YulException: virtual dev::Exception {};
|
||||
struct YulException: virtual util::Exception {};
|
||||
struct OptimizerException: virtual YulException {};
|
||||
struct CodegenException: virtual YulException {};
|
||||
struct YulAssertion: virtual YulException {};
|
||||
|
||||
/// Assertion that throws an YulAssertion containing the given description if it is not met.
|
||||
#define yulAssert(CONDITION, DESCRIPTION) \
|
||||
assertThrow(CONDITION, ::yul::YulAssertion, DESCRIPTION)
|
||||
assertThrow(CONDITION, ::solidity::yul::YulAssertion, DESCRIPTION)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user