2 ms·
asserts are not disabled in release builds unless you explicitly go out of your way to do so.
by arghwhat 3y ago
asserts are not disabled in release builds unless you explicitly go out of your way to do so.
- josefx 3y agoVarious build tool chains disable them implicitly for release builds. You should probably assert #ifdef NDEBUG #error #endif In your source code if your code assumes that assertions will never be disabled.