Permalink
Browse files

Line number info with match error message.

  • Loading branch information...
1 parent 0352864 commit f6537605593c87e3c256eb427e831e9fd90797a2 steve committed May 20, 1999
Showing with 7 additions and 4 deletions.
  1. +7 −4 netlist.cc
View
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT)
-#ident "$Id: netlist.cc,v 1.26 1999/05/16 05:08:42 steve Exp $"
+#ident "$Id: netlist.cc,v 1.27 1999/05/20 05:07:37 steve Exp $"
#endif
# include <cassert>
@@ -553,9 +553,9 @@ NetESignal::~NetESignal()
void NetESignal::set_width(unsigned w)
{
if (w != pin_count()) {
- cerr << "Width of " << w << " does not match " << *this <<
- endl;
- abort();
+ cerr << get_line() << ": Width of " << w << " does not match "
+ << *this << endl;
+ assert(0);
}
assert(w == pin_count());
expr_width(w);
@@ -1059,6 +1059,9 @@ NetNet* Design::find_signal(bool (*func)(const NetNet*))
/*
* $Log: netlist.cc,v $
+ * Revision 1.27 1999/05/20 05:07:37 steve
+ * Line number info with match error message.
+ *
* Revision 1.26 1999/05/16 05:08:42 steve
* Redo constant expression detection to happen
* after parsing.

0 comments on commit f653760

Please sign in to comment.