Commit 29c5930d authored by Martin Sustrik's avatar Martin Sustrik

asserts for invalid indexes in pipe reader & writer added

parent e0d1294c
...@@ -68,6 +68,7 @@ void zmq::reader_t::set_index (int index_) ...@@ -68,6 +68,7 @@ void zmq::reader_t::set_index (int index_)
int zmq::reader_t::get_index () int zmq::reader_t::get_index ()
{ {
zmq_assert (index != -1);
return index; return index;
} }
...@@ -112,6 +113,7 @@ void zmq::writer_t::set_index (int index_) ...@@ -112,6 +113,7 @@ void zmq::writer_t::set_index (int index_)
int zmq::writer_t::get_index () int zmq::writer_t::get_index ()
{ {
zmq_assert (index != -1);
return index; return index;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment