Commit a853fcbe authored by Davis King's avatar Davis King

Made BSP asserts always enabled since they are not costly to execute.

parent 37fb456b
......@@ -296,7 +296,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(target_node_id < number_of_nodes() &&
DLIB_CASSERT(target_node_id < number_of_nodes() &&
target_node_id != node_id(),
"\t void bsp_context::send()"
<< "\n\t Invalid arguments were given to this function."
......@@ -697,7 +697,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(listening_port != 0,
DLIB_CASSERT(listening_port != 0,
"\t void bsp_listen()"
<< "\n\t Invalid arguments were given to this function."
);
......@@ -718,7 +718,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(listening_port != 0,
DLIB_CASSERT(listening_port != 0,
"\t void bsp_listen()"
<< "\n\t Invalid arguments were given to this function."
);
......@@ -741,7 +741,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(listening_port != 0,
DLIB_CASSERT(listening_port != 0,
"\t void bsp_listen()"
<< "\n\t Invalid arguments were given to this function."
);
......@@ -766,7 +766,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(listening_port != 0,
DLIB_CASSERT(listening_port != 0,
"\t void bsp_listen()"
<< "\n\t Invalid arguments were given to this function."
);
......@@ -793,7 +793,7 @@ namespace dlib
)
{
// make sure requires clause is not broken
DLIB_ASSERT(listening_port != 0,
DLIB_CASSERT(listening_port != 0,
"\t void bsp_listen()"
<< "\n\t Invalid arguments were given to this function."
);
......
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