Skip to content

Commit

Permalink
wip cleanup and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Mar 30, 2024
1 parent 1207891 commit 372b307
Show file tree
Hide file tree
Showing 7 changed files with 3,412 additions and 532 deletions.
4 changes: 4 additions & 0 deletions src/c4/yml/event_handler_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ struct EventHandlerTree
{
RYML_CHECK(tree);
RYML_CHECK(id < tree->capacity());
if(!tree->is_root(id))
if(tree->is_map(tree->parent(id)))
if(!tree->has_key(id))
c4::yml::error("destination node belongs to a map and has no key");
m_tree = tree;
m_id = id;
m_stack.clear();
Expand Down
Loading

0 comments on commit 372b307

Please sign in to comment.