diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 11:03:03 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 11:03:03 +0200 |
| commit | 0fa0affc1ad3006e3f3620ecb02307de1be00fe1 (patch) | |
| tree | 3cfac67366c1153a0635f0e9af7f7c22dd0a4e48 /src/error.hpp | |
| parent | workflows/ci: add clang-format job (diff) | |
| download | privilege-check-0fa0affc1ad3006e3f3620ecb02307de1be00fe1.tar.gz privilege-check-0fa0affc1ad3006e3f3620ecb02307de1be00fe1.zip | |
minor fixes
Diffstat (limited to 'src/error.hpp')
| -rw-r--r-- | src/error.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error.hpp b/src/error.hpp index 8a0778c..3a33466 100644 --- a/src/error.hpp +++ b/src/error.hpp @@ -19,6 +19,7 @@ inline Error make(const char* function_name) { return {static_cast<int>(ec), std::system_category(), function_name}; } +[[noreturn]] inline void raise(const char* function_name) { throw make(function_name); } |
