NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
panic.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#include <string_view>
11
12namespace nnl {
13
21
22using PanicFun = void (*)(std::string_view reason) noexcept;
23
37void SetGlobalPanicCB(PanicFun callback) noexcept;
38
39[[noreturn]] void Panic(std::string_view reason) noexcept;
40
42} // namespace nnl
void SetGlobalPanicCB(PanicFun callback) noexcept
Sets the global callback for fatal library errors.
Definition exception.hpp:56