| 271 | } |
| 272 | |
| 273 | wabt::OutputBuffer* wabt_format_binary_errors(wabt::Errors* errors) { |
| 274 | std::string string_result = |
| 275 | FormatErrorsToString(*errors, wabt::Location::Type::Binary); |
| 276 | |
| 277 | wabt::OutputBuffer* result = new wabt::OutputBuffer(); |
| 278 | std::copy(string_result.begin(), string_result.end(), |
| 279 | std::back_inserter(result->data)); |
| 280 | return result; |
| 281 | } |
| 282 | |
| 283 | void wabt_destroy_errors(wabt::Errors* errors) { |
| 284 | delete errors; |
nothing calls this directly
no test coverage detected