]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#730,!2] Addressed review comment
authorThomas Markwalder <tmark@isc.org>
Mon, 29 Jul 2019 11:01:25 +0000 (07:01 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 16 Aug 2019 20:45:12 +0000 (16:45 -0400)
    src/lib/exceptions/isc_assert.h - clarified commentary

src/lib/exceptions/isc_assert.h

index 3600cde5c9bdffc62ecab1d796ae9c0310d5749c..6b5bf95a42593372c3b59a6fdb074ac40358fa65 100644 (file)
@@ -12,8 +12,9 @@
 namespace isc {
 
 /// @brief Replacement for assert() that throws if the expression is false.
-/// It exists because some of the original code has asserts and we prefer to
-/// throw rather than crash the server or be compile out asserts.
+/// This macro exists because some of the original code uses assert() and we
+/// decided it would be better to replace them with exception throws rather
+/// than compiling out all asserts.
 #define isc_throw_assert(expr) \
 {\
     if(!(static_cast<bool>(expr))) \