Lely core libraries  2.3.4
exception.cpp
Go to the documentation of this file.
1 
24 // NOLINTNEXTLINE(build/include)
25 #include "util.h"
26 
27 #if !LELY_NO_CXX
28 
29 #include <lely/util/exception.hpp>
30 
31 #include <cstdlib>
32 
33 extern "C" {
34 
35 _Noreturn void
36 __throw_or_abort(const char* what) noexcept {
37  (void)what;
38 
39  ::std::abort();
40 }
41 }
42 
43 #endif
util.h
_Noreturn
#define _Noreturn
A function declared with a _Noreturn function specifier SHALL not return to its caller.
Definition: features.h:224
exception.hpp
__throw_or_abort
_Noreturn void __throw_or_abort(const char *what) noexcept
Aborts the process instead of throwing an exception.
Definition: exception.cpp:36