diff options
Diffstat (limited to 'src/support/file.cpp')
-rw-r--r-- | src/support/file.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/support/file.cpp b/src/support/file.cpp index b4c410b5e..68ffbb5ac 100644 --- a/src/support/file.cpp +++ b/src/support/file.cpp @@ -77,6 +77,14 @@ T wasm::read_file(const std::string& filename, return input; } +std::string wasm::read_possible_response_file(const std::string& input) { + if (input.size() == 0 || input[0] != '@') { + return input; + } + return wasm::read_file<std::string>( + input.substr(1), Flags::Text, Flags::Release); +} + // Explicit instantiations for the explicit specializations. template std::string wasm::read_file<>(const std::string&, Flags::BinaryOption, Flags::DebugOption); |