在发布模式下 assert(false) 是否被忽略?

在发布模式下 assert(false) 是否被忽略?

问题描述:

我正在使用 VC++.assert(false) 在发布模式下被忽略了吗?

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

如果在发布模式下编译包括定义 NDEBUG,则是.

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

请参阅断言 (CRT)