#include <yaml-cpp/yaml.h>
Go to the source code of this file.
◆ YAML_ASSERT_KEY
#define YAML_ASSERT_KEY |
( |
|
node, |
|
|
|
key |
|
) |
| |
Value: do { \
if (!node[key].IsDefined()) { \
std::stringstream s; \
const auto mark = node.Mark(); \
s << "Node in line:col " << mark.line << ":" << mark.column << "\n\n" \
<< node << "\n\n" \
<< "should have a key " << key << "\n\n"; \
throw s.str(); \
} \
} while (0)