Fixes
This commit is contained in:
parent
a106bc4680
commit
3a0db500d0
@ -371,7 +371,8 @@ namespace cpptrace {
|
|||||||
std::exception_ptr nested_ptr() const noexcept;
|
std::exception_ptr nested_ptr() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
CPPTRACE_EXPORT [[noreturn]] void rethrow_and_wrap_if_needed(std::size_t skip = 0);
|
// [[noreturn]] must come first due to old clang
|
||||||
|
[[noreturn]] CPPTRACE_EXPORT void rethrow_and_wrap_if_needed(std::size_t skip = 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CPPTRACE_STD_FORMAT) && defined(__cpp_lib_format)
|
#if defined(CPPTRACE_STD_FORMAT) && defined(__cpp_lib_format)
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
#else
|
#else
|
||||||
#include "elf.hpp"
|
#include "elf.hpp"
|
||||||
#endif
|
#endif
|
||||||
#if CPPTRACE_HAS_DL_FIND_OBJECT
|
#ifdef CPPTRACE_HAS_DL_FIND_OBJECT
|
||||||
#include <link.h>
|
#include <link.h>
|
||||||
#endif
|
#endif
|
||||||
#elif IS_WINDOWS
|
#elif IS_WINDOWS
|
||||||
@ -64,7 +64,7 @@ namespace detail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if CPPTRACE_HAS_DL_FIND_OBJECT
|
#ifdef CPPTRACE_HAS_DL_FIND_OBJECT
|
||||||
inline std::vector<object_frame> get_frames_object_info(const std::vector<frame_ptr>& addrs) {
|
inline std::vector<object_frame> get_frames_object_info(const std::vector<frame_ptr>& addrs) {
|
||||||
// Use _dl_find_object when we can, it's orders of magnitude faster
|
// Use _dl_find_object when we can, it's orders of magnitude faster
|
||||||
std::vector<object_frame> frames;
|
std::vector<object_frame> frames;
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#if CPPTRACE_HAS_DL_FIND_OBJECT
|
#ifdef CPPTRACE_HAS_DL_FIND_OBJECT
|
||||||
#if IS_LINUX || IS_APPLE
|
#if IS_LINUX || IS_APPLE
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user