dev-func-drop
Brett 2025-01-20 15:45:32 -05:00
parent b3153511ee
commit 4cfbdc08ec
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,7 @@ macro(compile_options target_name)
sanitizers(${target_name})
endmacro()
project(blt-gp VERSION 0.3.23)
project(blt-gp VERSION 0.3.24)
include(CTest)

View File

@ -404,6 +404,11 @@ namespace blt::gp
thread_local tree_t child_tree{program};
c.copy_subtree(tree_t::subtree_point_t(child.start), child.end, child_tree);
if (!child_tree.check(detail::debug::context_ptr))
{
child_tree.print(std::cout, false, true);
BLT_ABORT("We found an error");
}
c.delete_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)));
c.insert_subtree(tree_t::subtree_point_t(static_cast<ptrdiff_t>(c_node)), child_tree);
child_tree.clear(program);