1 | // SPDX-License-Identifier: LGPL-2.0-or-later |
---|---|
2 | |
3 | #pragma once |
4 | |
5 | #include "kcrash_export.h" |
6 | |
7 | #include <exception> |
8 | #include <optional> |
9 | |
10 | namespace KCrash |
11 | { |
12 | struct KCRASH_NO_EXPORT ExceptionMetadata { |
13 | std::exception_ptr ptr; |
14 | const char *klass; |
15 | const char *what; |
16 | }; |
17 | |
18 | KCRASH_NO_EXPORT std::optional<ExceptionMetadata> exceptionMetadata(); |
19 | } // namespace KCrash |
20 |