STX  1.0.0
abort.h
Go to the documentation of this file.
1 
30 #pragma once
31 
32 #include <cstdlib>
33 
34 #include "stx/panic.h"
35 
37 
39 [[noreturn]] inline void panic_abort(std::string_view const& info,
40  ReportPayload const& payload,
41  SourceLocation const& location) {
42  (void)info;
43  (void)payload;
44  (void)location;
45 
46  std::abort();
47 }
48 
Definition: report.h:304
void panic_abort(std::string_view const &info, ReportPayload const &payload, SourceLocation const &location)
Causes the abort instruction to be executed.
Definition: abort.h:39
#define STX_END_NAMESPACE
Definition: config.h:329
Definition: source_location.h:48
#define STX_BEGIN_NAMESPACE
Definition: config.h:325