Continued... Show file and line info when possible on internal graph errors.

This commit is contained in:
Wilson Snyder
2018-07-14 20:44:43 -04:00
parent 22939d7473
commit 43694ec87c
6 changed files with 32 additions and 14 deletions
+4
View File
@@ -256,6 +256,10 @@ void V3Graph::clearColors() {
//======================================================================
// Dumping
void V3Graph::loopsMessageCb(V3GraphVertex* vertexp) {
vertexp->v3fatalSrc("Loops detected in graph: "<<vertexp);
}
void V3Graph::loopsVertexCb(V3GraphVertex* vertexp) {
// Needed here as V3GraphVertex<< isn't defined until later in header
std::cerr<<"-Info-Loop: "<<(void*)(vertexp)<<" "<<vertexp<<endl;