Commit 7b1442e6 authored by Davis King's avatar Davis King

Made DLIB_ASSERT turn into an empty {} when disabled instead of turning

into nothing.  This way if you have a DLIB_ASSERT inside an if statement
it doesn't change anything about the code if it's disabled.
parent 72d80536
......@@ -106,7 +106,7 @@ namespace dlib
#define DLIB_ASSERT(_exp,_message) DLIB_CASSERT(_exp,_message)
#define DLIB_IF_ASSERT(exp) exp
#else
#define DLIB_ASSERT(_exp,_message)
#define DLIB_ASSERT(_exp,_message) {}
#define DLIB_IF_ASSERT(exp)
#endif
......
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