Patches: fix logging for locations of node iterators

This commit is contained in:
Megamouse 2023-07-12 01:10:35 +02:00
parent 02bac61c9c
commit 482722af0a
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,11 @@ std::string get_yaml_node_location(YAML::Node node)
}
}
std::string get_yaml_node_location(const YAML::detail::iterator_value& it)
{
return get_yaml_node_location(it.first);
}
template u32 get_yaml_node_value<u32>(YAML::Node, std::string&);
template u64 get_yaml_node_value<u64>(YAML::Node, std::string&);
template s64 get_yaml_node_value<s64>(YAML::Node, std::string&);

View File

@ -28,3 +28,4 @@ T get_yaml_node_value(YAML::Node node, std::string& error_message);
// Get the location of the node in the document
std::string get_yaml_node_location(YAML::Node node);
std::string get_yaml_node_location(const YAML::detail::iterator_value& it);