mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add default messages to assertion macros
This commit is contained in:
+1
-1
@@ -53,6 +53,6 @@ struct StackTooDeepError: virtual YulException
|
||||
|
||||
/// Assertion that throws an YulAssertion containing the given description if it is not met.
|
||||
#define yulAssert(CONDITION, DESCRIPTION) \
|
||||
assertThrow(CONDITION, ::solidity::yul::YulAssertion, DESCRIPTION)
|
||||
assertThrowWithDefaultDescription(CONDITION, ::solidity::yul::YulAssertion, DESCRIPTION, "Yul assertion failed")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user