diff options
author | chriseth <chris@ethereum.org> | 2017-06-20 16:52:58 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-21 01:21:29 +0800 |
commit | 57f79ebfa65bdc0dfce9de5ec7e9d8f4c2db1197 (patch) | |
tree | 54594e686ccf2d1e6e04e87e10f8c3d3eae857bc /libevmasm | |
parent | cb5f2f90f6d70f299bd0a4e0e6ed597fd728180b (diff) | |
download | dexon-solidity-57f79ebfa65bdc0dfce9de5ec7e9d8f4c2db1197.tar.gz dexon-solidity-57f79ebfa65bdc0dfce9de5ec7e9d8f4c2db1197.tar.zst dexon-solidity-57f79ebfa65bdc0dfce9de5ec7e9d8f4c2db1197.zip |
Remove debugbreak.
Diffstat (limited to 'libevmasm')
-rw-r--r-- | libevmasm/Assembly.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libevmasm/Assembly.h b/libevmasm/Assembly.h index 13d82e1a..d1cfc7ef 100644 --- a/libevmasm/Assembly.h +++ b/libevmasm/Assembly.h @@ -85,7 +85,7 @@ public: AssemblyItem const& back() const { return m_items.back(); } std::string backString() const { return m_items.size() && m_items.back().type() == PushString ? m_strings.at((h256)m_items.back().data()) : std::string(); } - void onePath() { if (asserts(!m_totalDeposit && !m_baseDeposit)) BOOST_THROW_EXCEPTION(InvalidDeposit()); m_baseDeposit = m_deposit; m_totalDeposit = INT_MAX; } + void onePath() { assertThrow(!m_totalDeposit && !m_baseDeposit, InvalidDeposit, ""); m_baseDeposit = m_deposit; m_totalDeposit = INT_MAX; } void otherPath() { donePath(); m_totalDeposit = m_deposit; m_deposit = m_baseDeposit; } void donePaths() { donePath(); m_totalDeposit = m_baseDeposit = 0; } void ignored() { m_baseDeposit = m_deposit; } @@ -93,8 +93,8 @@ public: void injectStart(AssemblyItem const& _i); int deposit() const { return m_deposit; } - void adjustDeposit(int _adjustment) { m_deposit += _adjustment; if (asserts(m_deposit >= 0)) BOOST_THROW_EXCEPTION(InvalidDeposit()); } - void setDeposit(int _deposit) { m_deposit = _deposit; if (asserts(m_deposit >= 0)) BOOST_THROW_EXCEPTION(InvalidDeposit()); } + void adjustDeposit(int _adjustment) { m_deposit += _adjustment; assertThrow(m_deposit >= 0, InvalidDeposit, ""); } + void setDeposit(int _deposit) { m_deposit = _deposit; assertThrow(m_deposit >= 0, InvalidDeposit, ""); } /// Changes the source location used for each appended item. void setSourceLocation(SourceLocation const& _location) { m_currentSourceLocation = _location; } |