diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-07 06:11:19 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-11 06:40:42 +0800 |
commit | f3158f92d6070b6088c6a1b32f2934b9cd7dde1b (patch) | |
tree | 06ce91bd693a16055aaba7437d60b6f68fa51fb4 /libsolidity/analysis | |
parent | 148f9233516ff5ad94d81aba9bc9c0440d3afc7b (diff) | |
download | dexon-solidity-f3158f92d6070b6088c6a1b32f2934b9cd7dde1b.tar.gz dexon-solidity-f3158f92d6070b6088c6a1b32f2934b9cd7dde1b.tar.zst dexon-solidity-f3158f92d6070b6088c6a1b32f2934b9cd7dde1b.zip |
Support revert()
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/GlobalContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/analysis/GlobalContext.cpp b/libsolidity/analysis/GlobalContext.cpp index cc418c5e..4f100cd0 100644 --- a/libsolidity/analysis/GlobalContext.cpp +++ b/libsolidity/analysis/GlobalContext.cpp @@ -67,7 +67,9 @@ m_magicVariables(vector<shared_ptr<MagicVariableDeclaration const>>{make_shared< make_shared<MagicVariableDeclaration>("ripemd160", make_shared<FunctionType>(strings(), strings{"bytes20"}, FunctionType::Location::RIPEMD160, true)), make_shared<MagicVariableDeclaration>("assert", - make_shared<FunctionType>(strings{"bool"}, strings{}, FunctionType::Location::Assert))}) + make_shared<FunctionType>(strings{"bool"}, strings{}, FunctionType::Location::Assert)), + make_shared<MagicVariableDeclaration>("revert", + make_shared<FunctionType>(strings(), strings(), FunctionType::Location::Revert))}) { } |