Is assert(false) ignored in release mode?

Brian R. Bondy picture Brian R. Bondy · Nov 6, 2008 · Viewed 26.3k times · Source

I am using VC++. Is assert(false) ignored in release mode?

Answer

activout.se picture activout.se · Nov 6, 2008

If compiling in release mode includes defining NDEBUG, then yes.

See assert (CRT)