| 136 | } |
| 137 | |
| 138 | bool reshadefx::preprocessor::append_file(const std::filesystem::path &path) |
| 139 | { |
| 140 | std::string source_code; |
| 141 | if (!read_file(path, source_code)) |
| 142 | return false; |
| 143 | |
| 144 | return append_string(std::move(source_code), path); |
| 145 | } |
| 146 | bool reshadefx::preprocessor::append_string(std::string source_code, const std::filesystem::path &path) |
| 147 | { |
| 148 | // Enforce all input strings to end with a line feed |
no test coverage detected