9 #ifndef CPPCOMMON_ERRORS_FATAL_H
10 #define CPPCOMMON_ERRORS_FATAL_H
22 #define fatality(...) CppCommon::fatal(__LOCATION__, __STACK__, __VA_ARGS__)
39 void fatal(
const SourceLocation& location,
const StackTrace& trace,
const std::string& message,
int error =
SystemError::GetLast()) noexcept;
52 void fatal(
const SourceLocation& location,
const StackTrace& trace,
const std::exception&
fatal) noexcept;
static int GetLast() noexcept
Get the last system error code.
C++ Common project definitions.
void fatal(const SourceLocation &location, const StackTrace &trace, const std::string &message, int error=SystemError::GetLast()) noexcept
Fatal abort execution.
Source location definition.
Stack trace snapshot provider definition.