SpECTRE Documentation Coverage Report
Current view: top level - Utilities/ErrorHandling - StaticAssert.hpp Hit Total Coverage
Commit: 058fd9f3a53606b32c6beec17aafdb5fcf4268be Lines: 2 2 100.0 %
Date: 2024-04-27 02:05:51
Legend: Lines: hit not hit

          Line data    Source code
       1           1 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : /// \file
       5             : /// Defines macro DEBUG_STATIC_ASSERT.
       6             : 
       7             : #pragma once
       8             : 
       9             : /*!
      10             :  * \ingroup ErrorHandlingGroup
      11             :  * \brief A `static_assert` that is only checked in Debug builds
      12             :  */
      13             : #ifdef SPECTRE_DEBUG
      14             : #define DEBUG_STATIC_ASSERT(...) static_assert(__VA_ARGS__)
      15             : #else  // ifdef  SPECTRE_DEBUG
      16           1 : #define DEBUG_STATIC_ASSERT(...) static_assert(true)
      17             : #endif  // ifdef  SPECTRE_DEBUG

Generated by: LCOV version 1.14