rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
error.def.hpp File Reference

Definitions of error utilities used by ryml. More...

#include <c4/yml/error.hpp>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  c4
 (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message.
namespace  c4::yml

Functions

template<class DumpFn>
size_t c4::yml::location_format (DumpFn &&dumpfn, Location const &loc)
 generic formatting of a location
template<class DumpFn>
void c4::yml::location_format_with_context (DumpFn &&dumpfn, Location const &location, csubstr source_buffer, csubstr call="", size_t num_lines_before=3, size_t num_lines_after=0, size_t first_col_highlight=0, size_t last_col_highlight=0, size_t maxlen=80u)
 Generic formatting of a location, printing the source code buffer region around the location.
template<class DumpFn>
void c4::yml::err_basic_format (DumpFn &&dumpfn, csubstr msg, ErrorDataBasic const &errdata)
 Given an error message and associated basic error data, format it fully as a basic error message.
template<class DumpFn>
void c4::yml::err_parse_format (DumpFn &&dumpfn, csubstr msg, ErrorDataParse const &errdata)
 Given an error message and associated parse error data, format it fully as a parse error message.
template<class DumpFn>
void c4::yml::err_visit_format (DumpFn &&dumpfn, csubstr msg, ErrorDataVisit const &errdata)
 Given an error message and associated visit error data, format it fully as a visit error message.

Detailed Description

Definitions of error utilities used by ryml.

Definition in file error.def.hpp.