Revision 6b1e25d6

b/gnuradio-core/src/lib/runtime/gr_block_detail.h
55 55
    return d_input[which];
56 56
  }
57 57

58
  void clear_input (unsigned int which)
59
  {
60
    if (which >= d_ninputs)
61
      throw std::invalid_argument ("gr_block_detail::input");
62
    if (d_input[which])
63
      d_input[which].reset();
64
  }
65

66 58
  void set_output (unsigned int which, gr_buffer_sptr buffer);
67 59
  gr_buffer_sptr output (unsigned int which)
68 60
  {
b/gnuradio-core/src/lib/runtime/gr_block_detail.i
46 46
    return d_input[which];
47 47
  }
48 48

49
  void clear_input (unsigned int which)
50
  {
51
    if (which >= d_ninputs)
52
      throw std::invalid_argument ("gr_block_detail::input");
53
    if (d_input[which])
54
      d_input[which].reset();
55
  }
56

57 49
  void set_output (unsigned int which, gr_buffer_sptr buffer);
58 50
  gr_buffer_sptr output (unsigned int which)
59 51
  {
b/gnuradio-core/src/lib/runtime/gr_hier_block2_detail.cc
55 55
  if (src.get() == dst.get())
56 56
    throw std::invalid_argument("src and destination blocks cannot be the same");
57 57

58
  // Connectments to block inputs or outputs
58
  // Connections to block inputs or outputs
59 59
  int max_port;
60 60
  if (src.get() == d_owner) {
61 61
    max_port = src->input_signature()->max_streams();

Also available in: Unified diff