I’ve told VC++ to compile my program in release mode, yet the assert() statements still fire. I thought assertions were supposed to be compiled out of release builds for performance. What’s going on? Is there some other setting I need to set skip compiling them?
I’ve told VC++ to compile my program in release mode, yet the assert() statements
Share
Check which preprocessor symbold you’re defining. A Debug build would normally define
_DEBUG, and a Release build would normally defineNDEBUG. Assertions would normally be switched off whenNDEBUGis defined.