4 ms·
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4075.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n407... , starting on page 11. "Asser
by maxlybbert 10y ago
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4075.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n407... , starting on page 11.
"Assert" isn't necessarily limited to the macro in assert.h. Some places, including I assume Blizzard, have more control over which builds remove which asserts.
- TeMPOraL 10y agoWell, if I redefine the word "alcohol" to mean "water", I can be sure that I won't get into trouble by drinking "alcohol" (a.k.a. TeMPOraL!alcohol) and driving. But it doesn't mean the laws saying "don't drink alcohol (::alcohol) and drive" are suddenly wrong. If Blizzard, et al. are using their own definition of asserts then they're responsible for their semantics. That doesn't change what is commonly understand as "assertion" in C/C++ code, and the author of this article is (apparently) using the bog-standard assert macro.
- maxlybbert 10y agoA broad definition is widespread: * http://www.boost.org/doc/libs/release/libs/assert/assert.html http://www.boost.org/doc/libs/release/libs/assert/assert.htm... * https://wiki.libsdl.org/CategoryAssertions https://wiki.libsdl.org/CategoryAssertions * https://msdn.microsoft.com/en-us/library/ew16s3zc.aspx https://msdn.microsoft.com/en-us/library/ew16s3zc.aspx * https://github.com/questor/eastl/blob/master/assert.cpp https://github.com/questor/eastl/blob/master/assert.cpp * http://kernelnewbies.org/FAQ/BUG http://kernelnewbies.org/FAQ/BUG Plus my copy of "The C++ Programming Language" (3rd edition) includes an example of creating an assertion facility that uses exceptions. I don't know who you talk to, but when assert comes up in conversations -- even conversations limited to C or C++ -- I know what the assert is meant to do but I don't assume I know where it's defined or if it's a one-size-fits-all approach.