sisi4s
Loading...
Searching...
No Matches
Yaml.hpp File Reference
#include <yaml-cpp/yaml.h>
Include dependency graph for Yaml.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YAML_ASSERT_KEY(node, key)
 

Macro Definition Documentation

◆ 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)