commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10655 - gnuradio/trunk/gnuradio-core/src/lib/runtime


From: jcorgan
Subject: [Commit-gnuradio] r10655 - gnuradio/trunk/gnuradio-core/src/lib/runtime
Date: Thu, 19 Mar 2009 16:32:30 -0600 (MDT)

Author: jcorgan
Date: 2009-03-19 16:32:30 -0600 (Thu, 19 Mar 2009)
New Revision: 10655

Modified:
   gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
Log:
Error out when hierarchical block inputs and outputs aren't wired internally.  
Fixes ticket:237

Modified: gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc       
2009-03-19 20:58:41 UTC (rev 10654)
+++ gnuradio/trunk/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc       
2009-03-19 22:32:30 UTC (rev 10655)
@@ -267,6 +267,12 @@
       throw std::runtime_error(msg.str());
     }
 
+    if (d_inputs[port] == gr_endpoint()) {
+      msg << "hierarchical block '" << d_owner->name() << "' input " << port
+         << " is not connected internally";
+      throw std::runtime_error(msg.str());
+    }
+
     result = resolve_endpoint(d_inputs[port], true);
   }
   else {
@@ -275,6 +281,12 @@
       throw std::runtime_error(msg.str());
     }
 
+    if (d_outputs[port] == gr_endpoint()) {
+      msg << "hierarchical block '" << d_owner->name() << "' output " << port
+         << " is not connected internally";
+      throw std::runtime_error(msg.str());
+    }
+
     result = resolve_endpoint(d_outputs[port], false);
   }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]