"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "4c0fdc6135cfeef10e8f6c586207acd59730793b"
Commit a853fcbe authored by Davis King's avatar Davis King
Browse files

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

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