Use zmq_assert rather then assert

This commit is contained in:
Martin Hurton
2012-05-27 15:31:59 +02:00
parent 52ed4cdccf
commit a8f9a0d891
3 changed files with 7 additions and 7 deletions

View File

@@ -219,8 +219,8 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_)
}
// Identity is not expected
assert ((msg_->flags () & msg_t::identity) == 0);
assert (pipe != NULL);
zmq_assert ((msg_->flags () & msg_t::identity) == 0);
zmq_assert (pipe != NULL);
// If we are in the middle of reading a message, just return the next part.
if (more_in)
@@ -273,7 +273,7 @@ bool zmq::router_t::xhas_in ()
return false;
// Identity is not expected
assert ((prefetched_msg.flags () & msg_t::identity) == 0);
zmq_assert ((prefetched_msg.flags () & msg_t::identity) == 0);
blob_t identity = pipe->get_identity ();
rc = prefetched_id.init_size (identity.size ());