Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <string>
7 :
8 1 : namespace sys {
9 : /// \ingroup ErrorHandlingGroup
10 : /// Abort the program with an error message.
11 : ///
12 : /// \details This function calls CkExit with a non-zero argument to indicate a
13 : /// failure, unless the SPECTRE_TRAP_ON_ERROR environmental variable is set, in
14 : /// which case it raises SIGTRAP.
15 1 : [[noreturn]] void abort(const std::string& message);
16 : } // namespace sys
|