前两天看到BBS上在讨论 assert()和ASSERT() 有什么区别,因为我平时也经常用到ASSERT(),对两者的区别还真不清楚,今天查了一下MSDN:
恩,很清楚了。
The assert routine is available in both the release and debug versions of the C run-time libraries. Two other assertion macros, _ASSERT and _ASSERTE, are also available, but they only evaluate the expressions passed to them when the _DEBUG flag has been defined.
恩,很清楚了。