mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make callback mandatory in libsolc
This commit is contained in:
parent
89b1a42b5c
commit
32c84fc3b6
@ -38,7 +38,7 @@ using namespace solidity;
|
||||
namespace
|
||||
{
|
||||
|
||||
ReadCallback::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = nullptr)
|
||||
ReadCallback::Callback wrapReadCallback(CStyleReadFileCallback _readCallback)
|
||||
{
|
||||
ReadCallback::Callback readCallback;
|
||||
if (_readCallback)
|
||||
@ -73,7 +73,7 @@ ReadCallback::Callback wrapReadCallback(CStyleReadFileCallback _readCallback = n
|
||||
return readCallback;
|
||||
}
|
||||
|
||||
string compile(string _input, CStyleReadFileCallback _readCallback = nullptr)
|
||||
string compile(string _input, CStyleReadFileCallback _readCallback)
|
||||
{
|
||||
StandardCompiler compiler(wrapReadCallback(_readCallback));
|
||||
return compiler.compile(std::move(_input));
|
||||
|
Loading…
Reference in New Issue
Block a user