sisi4s
Loading...
Searching...
No Matches
Yaml.hpp
Go to the documentation of this file.
1#include <yaml-cpp/yaml.h>
2
3#define YAML_ASSERT_KEY(node, key) \
4 do { \
5 if (!node[key].IsDefined()) { \
6 std::stringstream s; \
7 const auto mark = node.Mark(); \
8 s << "Node in line:col " << mark.line << ":" << mark.column << "\n\n" \
9 << node << "\n\n" \
10 << "should have a key " << key << "\n\n"; \
11 throw s.str(); \
12 } \
13 } while (0)