summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/top_block.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/top_block.cc')
-rw-r--r--gnuradio-runtime/lib/top_block.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-runtime/lib/top_block.cc b/gnuradio-runtime/lib/top_block.cc
index 7485124bac..3e81d71951 100644
--- a/gnuradio-runtime/lib/top_block.cc
+++ b/gnuradio-runtime/lib/top_block.cc
@@ -33,15 +33,15 @@
#include <iostream>
namespace gr {
-top_block_sptr make_top_block(const std::string& name)
+top_block_sptr make_top_block(const std::string& name, bool catch_exceptions)
{
- return gnuradio::get_initial_sptr(new top_block(name));
+ return gnuradio::get_initial_sptr(new top_block(name, catch_exceptions));
}
-top_block::top_block(const std::string& name)
+top_block::top_block(const std::string& name, bool catch_exceptions)
: hier_block2(name, io_signature::make(0, 0, 0), io_signature::make(0, 0, 0))
{
- d_impl = new top_block_impl(this);
+ d_impl = new top_block_impl(this, catch_exceptions);
}
top_block::~top_block()