File indexing completed on 2024-04-28 03:53:53

0001 // SPDX-License-Identifier: LGPL-2.0-or-later
0002 
0003 #pragma once
0004 
0005 #include "kcrash_export.h"
0006 
0007 #include <exception>
0008 #include <optional>
0009 
0010 namespace KCrash
0011 {
0012 struct KCRASH_NO_EXPORT ExceptionMetadata {
0013     std::exception_ptr ptr;
0014     const char *klass;
0015     const char *what;
0016 };
0017 
0018 KCRASH_NO_EXPORT std::optional<ExceptionMetadata> exceptionMetadata();
0019 } // namespace KCrash