diff options
author | chriseth <c@ethdev.com> | 2016-12-01 18:44:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-12-01 23:04:00 +0800 |
commit | f1907bbb12ce6a65d781bee1e1faebd6cde261bd (patch) | |
tree | f9143adf130707bf3b977f34597cf45101b7ce56 /libsolidity | |
parent | 4c15c465efa1af104c368c63ee715fd1051c7ef4 (diff) | |
download | dexon-solidity-f1907bbb12ce6a65d781bee1e1faebd6cde261bd.tar.gz dexon-solidity-f1907bbb12ce6a65d781bee1e1faebd6cde261bd.tar.zst dexon-solidity-f1907bbb12ce6a65d781bee1e1faebd6cde261bd.zip |
Add the `_runs` parameter.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 4 | ||||
-rw-r--r-- | libsolidity/interface/CompilerStack.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index d79345f0..b4fd6d87 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -242,9 +242,9 @@ bool CompilerStack::compile(bool _optimize, unsigned _runs, map<string, h160> co return true; } -bool CompilerStack::compile(string const& _sourceCode, bool _optimize) +bool CompilerStack::compile(string const& _sourceCode, bool _optimize, unsigned _runs) { - return parse(_sourceCode) && compile(_optimize); + return parse(_sourceCode) && compile(_optimize, _runs); } void CompilerStack::link() diff --git a/libsolidity/interface/CompilerStack.h b/libsolidity/interface/CompilerStack.h index 57c76133..f98a457a 100644 --- a/libsolidity/interface/CompilerStack.h +++ b/libsolidity/interface/CompilerStack.h @@ -120,7 +120,7 @@ public: ); /// Parses and compiles the given source code. /// @returns false on error. - bool compile(std::string const& _sourceCode, bool _optimize = false); + bool compile(std::string const& _sourceCode, bool _optimize = false, unsigned _runs = 200); /// Tries to translate all source files into a language suitable for formal analysis. /// @param _errors list to store errors - defaults to the internal error list. |