You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Especially the first definition seems very dangerous (since come compilers like gcc optimize asserts out so that the methods inside assert are not evaluated. What is the purpose of this? What is the intended way to evaluate the asserts?
The text was updated successfully, but these errors were encountered:
As far as I know asserts are only omitted, when NDEBUG is defined or passed as compile flag (-DNDEBUG), so the code should be fine as long as NDEBUG isn't defined.
I have seen the following code snippers in the alsz-ot-snd/rcv.cpp implementation:
assert(CheckConsistency(&check_queue, check_chan)); //CheckConsistency(&check_queue, check_chan);
//assert(CheckConsistency(&check_queue, check_chan)); //CheckConsistency(&check_queue, check_chan);
Especially the first definition seems very dangerous (since come compilers like gcc optimize asserts out so that the methods inside assert are not evaluated. What is the purpose of this? What is the intended way to evaluate the asserts?
The text was updated successfully, but these errors were encountered: