SpECTRE Documentation Coverage Report
Current view: top level - Utilities/System - Exit.hpp Hit Total Coverage
Commit: cd74d65bdc718fd7e344eaec61dc6334dd4d366b Lines: 1 2 50.0 %
Date: 2022-08-12 23:56:47
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <charm++.h>
       7             : #include <exception>
       8             : 
       9             : namespace sys {
      10             : 
      11             : /// \ingroup UtilitiesGroup
      12             : /// \brief Exit the program normally.
      13             : /// This should only be called once over all processors.
      14           1 : [[noreturn]] inline void exit() {
      15             :   CkExit();
      16             :   // the following call is never reached, but suppresses the warning that
      17             :   // a 'noreturn' function does return
      18             :   std::terminate();  // LCOV_EXCL_LINE
      19             : }
      20             : 
      21             : }  // namespace sys

Generated by: LCOV version 1.14