mirror of https://github.com/CGAL/cgal
replace assert(false) by CGAL_unreachable()
This commit is contained in:
parent
6325190a73
commit
7a2c543b06
|
|
@ -575,7 +575,7 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
|
||||||
return std::make_pair(prev_after_walk, cur_after_walk);
|
return std::make_pair(prev_after_walk, cur_after_walk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return std::make_pair(prev, cur);
|
return std::make_pair(prev, cur);
|
||||||
case 1:
|
case 1:
|
||||||
if(regular_case)
|
if(regular_case)
|
||||||
|
|
@ -593,10 +593,10 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
|
||||||
return std::make_pair(prev_after_walk, cur_after_walk);
|
return std::make_pair(prev_after_walk, cur_after_walk);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return std::make_pair(prev, cur);
|
return std::make_pair(prev, cur);
|
||||||
default:
|
default:
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return std::make_pair(prev, cur);
|
return std::make_pair(prev, cur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -626,8 +626,7 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
|
||||||
prev_after_walk = Simplex( std::get<0>(cur), Tr::VERTEX, pos, -1 );
|
prev_after_walk = Simplex( std::get<0>(cur), Tr::VERTEX, pos, -1 );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
prev_after_walk = Simplex( std::get<0>(cur), Tr::OUTSIDE_AFFINE_HULL, -1, -1 );
|
CGAL_unreachable();
|
||||||
CGAL_triangulation_assertion( false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Simplex cur_after_walk(Cell_handle(), Tr::OUTSIDE_AFFINE_HULL, -1, -1);
|
Simplex cur_after_walk(Cell_handle(), Tr::OUTSIDE_AFFINE_HULL, -1, -1);
|
||||||
|
|
@ -726,7 +725,7 @@ walk_to_next_3_inf( int inf )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return;
|
return;
|
||||||
case 1:
|
case 1:
|
||||||
prev_lt() = Tr::VERTEX;
|
prev_lt() = Tr::VERTEX;
|
||||||
|
|
@ -738,10 +737,10 @@ walk_to_next_3_inf( int inf )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1007,7 +1006,7 @@ walk_to_next_2()
|
||||||
this->li() = cell()->index( prev_cell()->vertex( prev_li() ) );
|
this->li() = cell()->index( prev_cell()->vertex( prev_li() ) );
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1018,7 +1017,7 @@ walk_to_next_2()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
CGAL_triangulation_assertion( false );
|
CGAL_unreachable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -625,7 +625,7 @@ private:
|
||||||
_curr_simplex = cell;
|
_curr_simplex = cell;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -719,7 +719,7 @@ public:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -792,7 +792,7 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
CGAL_assertion(false);//should not happen
|
CGAL_unreachable();//should not happen
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -863,7 +863,7 @@ public:
|
||||||
Cell_handle ec;
|
Cell_handle ec;
|
||||||
int ei = -1, ej = -1;
|
int ei = -1, ej = -1;
|
||||||
if (!triangulation()->is_edge(get_vertex(), chnext->vertex(linext), ec, ei, ej))
|
if (!triangulation()->is_edge(get_vertex(), chnext->vertex(linext), ec, ei, ej))
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
_curr_simplex = Edge(ec, ei, ej);
|
_curr_simplex = Edge(ec, ei, ej);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -916,7 +916,7 @@ public:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
};
|
};
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
@ -1017,10 +1017,10 @@ private:
|
||||||
case 3 ://cell
|
case 3 ://cell
|
||||||
return ch != get_cell();
|
return ch != get_cell();
|
||||||
default:
|
default:
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
}
|
}
|
||||||
//should not be reached
|
//should not be reached
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1074,7 +1074,7 @@ private:
|
||||||
return v1b;
|
return v1b;
|
||||||
|
|
||||||
std::cerr << "There is no vertex shared by e1 and e2" << std::endl;
|
std::cerr << "There is no vertex shared by e1 and e2" << std::endl;
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
return Vertex_handle();
|
return Vertex_handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1100,7 +1100,7 @@ private:
|
||||||
} while (++circ != end);
|
} while (++circ != end);
|
||||||
|
|
||||||
std::cerr << "There is no facet shared by e1 and e2" << std::endl;
|
std::cerr << "There is no facet shared by e1 and e2" << std::endl;
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
return Facet(Cell_handle(), 0);
|
return Facet(Cell_handle(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1118,7 +1118,7 @@ private:
|
||||||
} while (++circ != end);
|
} while (++circ != end);
|
||||||
|
|
||||||
std::cerr << "There is no facet shared by e and v" << std::endl;
|
std::cerr << "There is no facet shared by e and v" << std::endl;
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
return Facet(Cell_handle(), 0);
|
return Facet(Cell_handle(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1135,7 +1135,7 @@ private:
|
||||||
} while (++circ != end);
|
} while (++circ != end);
|
||||||
|
|
||||||
std::cerr << "There is no cell shared by e and v" << std::endl;
|
std::cerr << "There is no cell shared by e and v" << std::endl;
|
||||||
CGAL_assertion(false);
|
CGAL_unreachable();
|
||||||
return Cell_handle();
|
return Cell_handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue