MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / parser_error_message

Function parser_error_message

src/framework/io/yaml.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace {
12
13std::string parser_error_message(const yaml_parser_t & parser) {
14 std::ostringstream message;
15 message << "yaml parse error";
16 if (parser.problem != nullptr) {
17 message << ": " << parser.problem;
18 }
19 if (parser.problem_mark.line != 0 || parser.problem_mark.column != 0 || parser.problem_mark.index != 0) {
20 message << " at line " << (parser.problem_mark.line + 1)
21 << ", column " << (parser.problem_mark.column + 1);
22 }
23 return message.str();
24}
25
26const yaml_node_t & require_node(yaml_document_t & document, int index, const std::string & context) {
27 yaml_node_t * node = yaml_document_get_node(&document, index);

Callers 2

load_documentMethod · 0.85
require_single_documentFunction · 0.85

Calls 1

strMethod · 0.80

Tested by

no test coverage detected