mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Isolating libyul library API into its own namespace yul.
This commit is contained in:
+2
-5
@@ -23,18 +23,15 @@
|
||||
#include <libdevcore/Exceptions.h>
|
||||
#include <libdevcore/Assertions.h>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace yul
|
||||
{
|
||||
|
||||
struct YulException: virtual Exception {};
|
||||
struct YulException: virtual dev::Exception {};
|
||||
struct OptimizerException: 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, ::dev::yul::YulException, DESCRIPTION)
|
||||
assertThrow(CONDITION, ::yul::YulException, DESCRIPTION)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user